documentation type
More promises stuff. Docs and tests