Skip to content
Discussion options

You must be logged in to vote

There's not really a way to do this since we don't know from declare module "foo" { if it's a CommonJS or ESM module. One way you can fix that ambiguity is to add export const __esModule: boolean to declare module "foo", though.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Withered-Flower-0422
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants