8000 Added typescript generic to JBDOC in node binding by jeremyben · Pull Request #311 · Softmotions/ejdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added typescript generic to JBDOC in node binding #311

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 1 commit into from
Apr 17, 2021
Merged

Added typescript generic to JBDOC in node binding #311

merged 1 commit into from
Apr 17, 2021

Conversation

jeremyben
Copy link
Contributor

Thanks for your wonderful embedded database.

Using TypeScript heavily for correctness, I added generics to your JBDOC interface, in a very compatible and gradual way (defaults to {[key: string]: any} instead of unknown), so people could have a simple way to type their queries.

Let me know what you think, maybe you want the stricter way (defaults to unknown).

@adamansky adamansky merged commit be72ee7 into Softmotions:master Apr 17, 2021
@adamansky
Copy link
Member

Thank you!

9396

@adamansky
Copy link
Member
adamansky commented Apr 17, 2021

Will publish npm update soon Done

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
0