hey-api / openapi-ts

🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. Support: @mrlubos
https://heyapi.dev
Other
1.24k stars 97 forks source link

Support Deno #554

Open AlaaZorkane opened 5 months ago

AlaaZorkane commented 5 months ago

Description

Hey everyone, thank you for the wonderful package!

Just wondering if there are any plans to support other runtimes than nodejs, more specifically Deno.

Thanks!

mrlubos commented 5 months ago

Hey @AlaaZorkane, thanks for the message! I haven't looked into it yet and not opposed at all, but it depends on demand. The current focus are upcoming clients. Are you able to outline what changes would roughly need to happen in order to support Deno?

mrlubos commented 2 months ago

ping @AlaaZorkane

bombillazo commented 2 months ago

Hey, I just started to try this lib out using Deno, and its awesome! One thing that Deno requires is the file extension for imports, so teh current generated files will error out simply because they are missing the .ts extension in the import from statements.

Is there any current options with the configuration API to add the extension when generating files?

mrlubos commented 2 months ago

@bombillazo That's nice to hear! There were no direct attempts at making this compatible with Deno yet. Might prioritise soon... you can use my sponsors page for list of current priorities before there's a proper roadmap https://github.com/sponsors/mrlubos

bombillazo commented 2 months ago

On the way to support Deno, I opened this PR to help

936