Assert on TypeError with missing callback.
Add api documentation.