Skip to content

Add .d.ts #184

@bigbigDreamer

Description

@bigbigDreamer

Hi, mroderick:
I have an idea,
The popularity of typesript has become a trend, can I propose a PR to add index.d.ts to index.js to meet the current typescript requirements for strong type verification, instead of adding an additional @types library to do this .
And the current @types/pubsub-js is not fully considered, for example:

     declare var PubSub: PubSubJS.Base;

      declare module 'pubsub-js' {
         export = PubSub;
      }

Obviously, the use of the Node environment is not considered, but es6module is considered.
What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions