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

Support dynamic imports in addRelativeDeclarationExtensions #267

Open
1 task done
cjpearson opened this issue Dec 13, 2024 · 0 comments
Open
1 task done

Support dynamic imports in addRelativeDeclarationExtensions #267

cjpearson opened this issue Dec 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cjpearson
Copy link

Describe the feature

When generating declarations, some types are automatically inlined. For example, my declaration file looks something like this:

export declare const helloWorld: (foo: import("../../types/foo").Foo) => Promise<string>;

It would be helpful for addRelativeDeclarationExtensions to also handle these imports so the declarations are compatible with node16 resolution.

export declare const helloWorld: (foo: import("../../types/foo.js").Foo) => Promise<string>;

Additional information

  • Would you be willing to help implement this feature?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant