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

Add appendFileExtension option for referencing back to origional types #279

Closed
hongkongkiwi opened this issue Oct 31, 2024 · 2 comments
Closed

Comments

@hongkongkiwi
Copy link

I'm using deno and it requires explicit .ts extensions when importing files locally.

So for example this will not work:
import { type PortKeyConfig } from "./../types/schemas";

Instead it must be:
import { type PortKeyConfig } from "./../types/schemas.ts";

Using node with ECMAScript also requires .js to be added, so I think it's a valuable option either way.

Could you help to add a config value where I can force the file extension to be added? e.g. appendFileExtension: '.ts' or something like that?

@tvillaren
Copy link
Collaborator

Hello,
Thanks for reporting, I believe this is a duplicate of #259, right?

Feel free to open a PR if you have some time to help the library strive! 🙏

@hongkongkiwi
Copy link
Author

Oh yes it is a duplicate and funnily enough we have the same workaround ;)

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