Skip to content

Adding types v1 #357

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

Merged
merged 2 commits into from
May 23, 2017
Merged

Adding types v1 #357

merged 2 commits into from
May 23, 2017

Conversation

3n-mb
Copy link
Contributor

@3n-mb 3n-mb commented May 22, 2017

This PR adds types that guide user from sql.define to table objects, and type-helped use of those. Related issue is #351

Definition file is very useful, yet isn't 100% incomplete, as only sql.define is added to types, while there are other things in the module. SQL is vast, so is node-sql (superb job 👍 ), hence, 100% coverage with types is a task. But I already use these types in production. Can we say that 80% is already here?

Definitions can be a place for comments that people will read, thanks to mature TS's tooling (VSCode, etc.). So, definitions can be added. It can be done gradually.

@3n-mb 3n-mb mentioned this pull request May 22, 2017
@brianc
Copy link
Owner

brianc commented May 23, 2017

Nice! Thanks!

@brianc brianc merged commit f942054 into brianc:master May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants