Skip to content

How to use tsTypes in project with ES Modules and nodenext moduleResolution? #3933

Answered by Andarist
tomg7 asked this question in Q&A
Discussion options

You must be logged in to vote

This is currently not quite possible. We need to make typegen part of things more configurable. The plan is to add support for tsTypes: {} as import("./index.typegen.d.ts").Typegen0, (note the .d.ts part here) to the TypeScript itself (I was told by the TS team that this should be supported but it's currently not). With that in place we could just add an explicit .d.ts extension regardless of your settings and it should just work. We need to evaluate our options for pre-5.1 users though.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@andreash
Comment options

@andreash
Comment options

@andreash
Comment options

@JosephDenman
Comment options

@Andarist
Comment options

Answer selected by tomg7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants