Replies: 1 comment 4 replies
-
You can, that's exactly what we do with .vue behind the scenes. The general idea is to generate a corresponding .xxx.d.ts virtual file for files that need to be recognized by TS. Is your use case specific to vue project? Can you provide a more specific minimal case? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there, thanks for open-sourcing such a cool project. This is such a large barrier to entry for a lot of tools.
I've personally been building a vite-plugin that utilizes virtual modules to generate boilerplate-heavy code that can be automated. At the moment, I'm only generating TypeScript files, but I'm curious if I could/should use Volar to help the TypeScript language server/service understand the types of the generated files behind a virtual module import?
Beta Was this translation helpful? Give feedback.
All reactions