suggestion: Add Deno support
See original GitHub issueHi!
After seeing comment in Pull Request in Discord API Docs repo for adding Deno support (https://github.com/discord/discord-api-docs/pull/2401#issuecomment-750946151), 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 😄
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
https://github.com/microsoft/TypeScript/issues/37582
I mean, personally, I’m willing to create a CD that deploys to a
deno
branch for the time being, fast enough! What do you think, @iCrawl, @kyranet?