-
I am trying to upgrade my project to ES Modules.
in I tried to add the .js extension but the VS Code Extension removes it when I save the file. Is there a way for me to add tsTypes with the above settings or is it something that needs to be handled in XState? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
This is currently not quite possible. We need to make typegen part of things more configurable. The plan is to add support for |
Beta Was this translation helpful? Give feedback.
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.