Add typespecs to core API.