Is there a way to generate d.ts files during dev? #102
Unanswered
theogravity
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have my
tsconfig.node.json
with the following definition:When I run
electron-vite dev --watch
, I was hoping that thed.ts
files would be generated on reload, but this doesn't happen.The reason why I want to do this is so I can share the types directly with
src/renderer
in some cases without referencingsrc/main
directly. I like to keep my type and interface definitions with the code it's tied to, but those files cannot be imported into the renderer for technical reasons since they contain non-type exports.Beta Was this translation helpful? Give feedback.
All reactions