-
-
Notifications
You must be signed in to change notification settings - Fork 121
suggestion: Add Deno support #59
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
Labels
Comments
The modified version should be compatible with both node and deno, right? Can't we just add |
I personally have no issue with that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
After seeing comment in Pull Request in Discord API Docs repo for adding Deno support (discord/discord-api-docs#2401 (comment)), I decided to try this out.
From what I know, only import/export style has changed in Deno which makes this incompatible, which does not have anything like
index.js/ts
file and always requires extension of file to be in import.I've made a script which goes through all files and makes imports/exports compatible with Deno, https://github.com/DjDeveloperr/denoify-dapi-types. There's even a working GitHub action which deploys on
deno
branch on every push.You can see live version on my fork of this repo, https://github.com/DjDeveloperr/discord-api-types.
I have tested, those auto-generated types do work with Deno 😄
The text was updated successfully, but these errors were encountered: