Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

TypeScript support #809

Description

@ORESoftware

Not sure if you have TS support or if that's in the works, but Webstorm complains a lot with this library, saying methods are not recognized or arguments/signatures are wrong. e.g.:

sql.Database => Unresolved type "Database" (WS assumes this is a class/constructor)
db.configure => Unresolved function or method
db.serialize(function(){}); => Argument type Function is not assignable to parameter type Request

screenshot 2017-04-19 14 31 37

It would be really cool if you rewrote with TS (doesn't take that long, usually), and exported some type info.

Here is a really weird warning, by the way:

screenshot 2017-04-19 14 33 41

Thanks!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions