Skip to content

Conversation

chuanqisun
Copy link
Contributor

Hi @zh217, thanks for the amazing work! I thought it might be a "low hanging fruit" to add typescript support, hence this PR.

From the library consumers' point view, this change would allow them to import the library in TypeScript. The library is currently not usable by typescript out-of-the-box due to lack of typing files.

From the maintainer's (your) point view, this change implies the added liability for you to keep the documentation markdown (all languages) and the index.d.ts typing file in sync. An alternative approach is to combine index.js + index.d.ts into a single index.ts file, but that is a bigger change and requires new toolchain.

I'm happy to make small adjustments based on your needs. It is also ok if you want to dismiss this PR. It literally took me 5 minutes.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 24, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@chuanqisun
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@zh217
Copy link
Contributor

zh217 commented Apr 24, 2023

Nice! thanks!

@zh217 zh217 merged commit 617dcd9 into cozodb:main Apr 24, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants