4 ms·
This could change with an ongoing work to allow ts extension [1]. [1] https://github.com/microsoft/TypeScript/issues/37582 https://github.com/microsoft/TypeScr
by conaclos 4y ago
This could change with an ongoing work to allow ts extension [1].
[1] https://github.com/microsoft/TypeScript/issues/37582 https://github.com/microsoft/TypeScript/issues/37582
- iainmerrick 4y agoThat doesn’t look like an issue that’s going to be resolved any time soon. Lots of comments which read like people digging in their heels to preserve the current behavior.
- conaclos 4y agoIt was in the 4.9 iteration plan [1], and is now in the 5.0 iteration plan [2]. They also talk of this in a design meeting [3] and a member of TS team seems committed to it. [1] https://github.com/microsoft/TypeScript/issues/50457 https://github.com/microsoft/TypeScript/issues/50457 [2] https://github.com/microsoft/TypeScript/issues/51362 https://github.com/microsoft/TypeScript/issues/51362 [3] https://github.com/microsoft/TypeScript/issues/51302 https://github.com/microsoft/TypeScript/issues/51302
- iainmerrick 4y agoWell, I would love to see it, so I hope I’m wrong and you’re right!
- bakkoting 4y agoYou'll only be able to use that if you are using the non-default `--noEmit` configuration, which requires the use of some other tool to strip types. Even after that change, using `tsc` to strip types will still force you to write `.js` in your imports.