Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Type Definitions #57

Open
Splaktar opened this issue Oct 31, 2016 · 1 comment
Open

Provide Type Definitions #57

Splaktar opened this issue Oct 31, 2016 · 1 comment

Comments

@Splaktar
Copy link

We're using TypeScript with our NodeJS server, so it would be great if there were some type definitions to go with this library (which works great!).

So far we're just using the following in our typings.d.ts to work around this atm:

declare module 'mongo-querystring' {
  export = class MongoQS {
    constructor(options: any)
    public parse (params: any): any
  }
}

Providing an index.d.ts file in the root directory of this project would be the most basic way of doing this. Publishing something to @types/node-mongo-querystring would be the more official way.

Thank you for considering this.

@Starefossen
Copy link
Contributor

Pull requests are always welcome, @Splaktar 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants