acacode / swagger-typescript-api

Generate the API Client for Fetch or Axios from an OpenAPI Specification

Home Page:https://acacode.github.io/swagger-typescript-api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to generate content instead of a file?

blasdfaa opened this issue · 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?

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