node-mongo-querystring icon indicating copy to clipboard operation
node-mongo-querystring copied to clipboard

Provide Type Definitions

Open Splaktar opened this issue 9 years ago • 1 comments

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.

Splaktar avatar Oct 31 '16 01:10 Splaktar

Pull requests are always welcome, @Splaktar 👍

Starefossen avatar Oct 31 '16 07:10 Starefossen