UNPKG

@clean-js/api-gen

Version:

[docs](https://lulusir.github.io/clean-js/api-gen/usage) [中文文档](https://github.com/lulusir/clean-js-api-gen/blob/main/README-zh.md)

9 lines (8 loc) 420 B
import { OpenAPIV2, OpenAPIV3 } from 'openapi-types'; export declare class Writer { static schemaToRenameInterface(schema: OpenAPIV3.SchemaObject | OpenAPIV2.SchemaObject, name: string): Promise<string>; static getSourceFile(): import("ts-morph").SourceFile; static cleanOut(): Promise<void>; static writeOutFolder(): Promise<void>; static writeFile(filePath: string, content: any): Promise<void>; }