You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added typescript typings to support serialized pub-sub messages.
* index.js - converted `createMessageObject()` to constrained generic
returning less ambiguous MessageType<T> instead of Message.
* node.js - added isRaw to `_validateOption()`
* node.d.ts - converted `createPublisher()` & `createSubscription()` &
`deletePublisher()` to generic constrained to MessageTypeClassName.
Improves type inferencing. Similarly modified SubscriptionCallback.
* package.json - refactor dtslint test stage of the `test` script to
`test-ts` script and upgraded dtslint to version 4.0.4
* publisher.d.ts - converted Publisher class to generic constrained to
MessageTypeClassName.
* test/type/index.d.ts - updated minimum typescript version for dtslint
to 3.9
* test/type/main.ts - added tests
0 commit comments