Expose constants with types. A bit more accurate check for promise.
Release 0.0.2