hongyiweiwu
hongyiweiwu
@mcollina It's a special import type, and there doesn't seem to be a way to type what's actually imported. This really goes back to the argument of whether to support...
> This is incorrect as it totally does, there are even unit tests that verifies that Sorry about this -- since I only use typescript, I only saw how these...
> I'm confused about what issue is happening here. > > If `import plugin from 'some-fastify-plugin'` works as expected why does it break when you do `import ('some-fastify-plugin')` inline? Is...
I wish I'm a better explainer... But this entire import/export system is quite hopeless. I've tried various kinds of scenarios on my computer and the following seems to work. FOR...
> You are a very good explainer. Like I said this is really hard and I appreciate you sharing this information with us. It is very valuable and helpful! Always...
Hey @fox1t thanks for the post! This is probably the best way to go about this right now -- however since you're using `export =`, you can only export the...
> What you can do in exports.module, you can do it also using `export =` syntax Actually scratch that I saw you could use `typeof`. In this case I think...
> I have some more context about dynamic`import()` in TypeScript. It seems that it plays very bad with `esModuleInterop: true` and CJS exported modules (even if they have a .default...
> I've just discovered that even if you can export a typeof something when you try to import it, TS considers it as executable code and not just type alias:...