Writing a module, how to import template into composable?
I'm trying my hand at writing a module and so far so good.
1. It fetches an OpenAPI schema
2. Builds it using
openapi-typescript
3. Writes it to the project build directory via @nuxt/kit
addTemplate
4. And adds a composable via @nuxt/kit
addImports
The setup
function is this
My question now is, how can I import the written template api.d.ts
into my added composable? I assume this should be possible since this is all done a build time?0 Replies