-
-
Notifications
You must be signed in to change notification settings - Fork 813
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
TypeScript support #809
Labels
Comments
There’s an |
An update for version 3.1 has been merged some days ago: DefinitelyTyped/DefinitelyTyped#16656 |
This was referenced Apr 15, 2022
I've merged a PR to add this: ffda15f I'll be updating the types before releasing soon 🙂 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 methoddb.serialize(function(){});
=> Argument type Function is not assignable to parameter type RequestIt 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:
Thanks!
The text was updated successfully, but these errors were encountered: