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

Feature request: Deno support #70

Open
acomagu opened this issue Jan 29, 2023 · 1 comment
Open

Feature request: Deno support #70

acomagu opened this issue Jan 29, 2023 · 1 comment

Comments

@acomagu
Copy link

acomagu commented Jan 29, 2023

Currently it works with following configuration in deno.json

{
  "imports": {
    "ts-interface-checker": "npm:ts-interface-checker"
  }
}

But ideally, it should work without special settings.

It's possible to add --deno flag to adapt generated code to Deno syntax?

Thank you!

@dsagal
Copy link
Member

dsagal commented Jan 29, 2023

Do you mean that ts-interface-builder should have this flag? It already has a --format flag, to output ts or js:esm or js:cjs code (differing mainly in import and export syntax). Perhaps adding deno as another supported format would be a good approach? A pull request would be welcome. If import syntax is the main difference compared to an existing format, then I imagine that this area of the code is a good place to start: https://github.com/gristlabs/ts-interface-builder/blob/8ff1a0c9f4b59d5b5038f366fb485f344ae70813/lib/index.ts#L248

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

No branches or pull requests

2 participants