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

WIP: Add TypeScript definitions #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

WIP: Add TypeScript definitions #5

wants to merge 1 commit into from

Conversation

Cretezy
Copy link

@Cretezy Cretezy commented Aug 16, 2019

Do not merge!

Not yet tested.

@terkelg
Copy link
Owner

terkelg commented Aug 17, 2019

Awesome - Let me know when this is ready for merge 👍 Should the types be in DefinitelyTyped or here? @lukeed – what do you do usually do?

@lukeed
Copy link

lukeed commented Aug 17, 2019

I keep them in the module when they don't rely on a dependency tree of other types

@@ -21,7 +22,8 @@
"prepublish": "npm run build"
},
"files": [
"dist"
"dist",
"types"
Copy link
Owner

@terkelg terkelg Aug 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do "*.d.ts", and place the types in the root of the project as sqliterally.d.ts?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could. I'll do that in the next iteration.

Related the where to place them (@types or here), it should be here. @types if for when a package doesn't include itself

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.

3 participants