swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

How to generate content instead of a file?

Open blasdfaa opened this issue 1 year ago • 1 comments

Is it possible to generate a string with content instead of a file? I want to create a virtual module in vite and I need to get the content string after generation. Is there such a possibility?

blasdfaa avatar Feb 11 '24 04:02 blasdfaa

I see that docs mention that if you don't define output property it will actually not write to disk, so maybe that just returns content as string that you can use?

image

marko-hologram avatar Feb 14 '24 16:02 marko-hologram