statelyai / xstate-tools

Public monorepo for XState tooling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Option to Not Write "tsTypes: {} as import("./index.typegen").Typegen0"

dylanarmstrong opened this issue · comments

Feature Request

Currently, every time typegen runs, it will write this line. This line is invalid when compiling against node16 as it needs to be ./index.typegen.js.

Once I've already added the line, I'd like to turn off writing this line when watch triggers.

I'm not sure what you are asking here since you also opened another issue that is highly related to this one. How this one is different from that other one?

This is a feature request to disable writing the line entirely, and just generate the typegen file. The other issue was about the file extension missing from the import itself, which was causing issues on node16 for me.