You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The typegen file for machine is currently called [machine].typegen.ts. Because this file only contains typings, it might be better to rename it to [machine].typegen.d.ts.
I ran into this being an issue while using Nuxt, which processes .ts files, but not .d.ts files for this exact reason.
In the end it wasn't a huge deal, I have moved the machine and typegen file out of the folder that auto-imports .ts files, but might be better to be safe than sorry.
The text was updated successfully, but these errors were encountered:
I second and third that. TL;DR it's the standard file extension for TypeScript definition files according to Microsoft documentation and tools.
JetBrains IDEs also treat .d.ts as TypeScript definition files (modules), so do bundlers, testing tools ... everybody.
It's also what one gets from services like DefinitelyTyped. It's what tsc creates if you ask for it or Microsoft's dts-gen.
The typegen file for machine is currently called
[machine].typegen.ts
. Because this file only contains typings, it might be better to rename it to[machine].typegen.d.ts
.I ran into this being an issue while using Nuxt, which processes
.ts
files, but not.d.ts
files for this exact reason.In the end it wasn't a huge deal, I have moved the machine and typegen file out of the folder that auto-imports
.ts
files, but might be better to be safe than sorry.The text was updated successfully, but these errors were encountered: