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

Declare index typings #35

Merged
merged 2 commits into from
Apr 24, 2022
Merged

Declare index typings #35

merged 2 commits into from
Apr 24, 2022

Conversation

NightScript370
Copy link
Contributor

@NightScript370 NightScript370 commented Jan 20, 2022

https://docs.skypack.dev/package-authors/package-checks#types

Getting typings called by skypack allows Deno users wishing to use revolt.js to see the typings.
This doesn't close my issue but it does work around the issue. We should still see if we could make a Deno compatible build by default rather than rely on this third party app but it works.

https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#including-declarations-in-your-npm-package
It's also what the TypeScript specifications recommend

@NightScript370
Copy link
Contributor Author

I updated the PR to accommodate the latest changes.
I also fixed the JSON to be valid.

@NightScript370 NightScript370 mentioned this pull request Apr 24, 2022
2 tasks
@insertish insertish merged commit 2c91ce6 into revoltchat:master Apr 24, 2022
@NightScript370
Copy link
Contributor Author

https://cdn.skypack.dev/-/revolt.js@v6.0.0-rc.15-i2YPAc8ICFrachs4bfh2/dist=es2019,mode=types/dist/index.d.ts
Seems like the TypeScript file declaration was successful. Now, Deno users should be getting TypeScript definitions on their SkyPack imports.

Thanks for approving this workaround in the meantime!

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