Skip to content

add typescript declaration for better code completion#122

Open
bangbang93 wants to merge 6 commits intonevill:masterfrom
bangbang93:master
Open

add typescript declaration for better code completion#122
bangbang93 wants to merge 6 commits intonevill:masterfrom
bangbang93:master

Conversation

@bangbang93
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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

@Franklin0702
Copy link
Copy Markdown

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

@der-ofenmeister
Copy link
Copy Markdown

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
Copy Markdown

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