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

add typescript declaration for better code completion #122

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

bangbang93
Copy link

No description provided.

@bangbang93 bangbang93 changed the title add dts for better code completion add typescript declaration for better code completion Mar 17, 2020
@nevill
Copy link
Owner

nevill commented Mar 22, 2020

Wow, never thought of a PR like this. I guess I have to learn Typescript first ...

@bangbang93
Copy link
Author

Well, In fact, typescript declaration won't take any effect to runtime. It only provides type declaration in typescript compilation. Javascript can use the type declaration that provides more accurate code completion. So this should be merged safely.

@Franklin0702
Copy link

These declarations look good to me, we can meet to see it in detail.

@Franklin0702
Copy link

But to do it in the right way, we should create another library just with types, like @types/zongji

@der-ofenmeister
Copy link

der-ofenmeister commented Aug 14, 2023

The types look nice, should we add a PR for the @vlasky/zongji repo instead of this one? That one also supports MySQL 8.0+ and is a fresher version of this package.

LMK your thoughts.

@der-ofenmeister
Copy link

Added an issue in that repo: vlasky#5

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.

4 participants