@lonu/stc
Version:
A tool for converting OpenApi/Swagger/Apifox into code.
18 lines • 722 B
TypeScript
/**
* Generates a declaration file from the given source code.
*
* @param {string} sourceCode - The source code to generate the declaration file from.
* @return {string} The generated declaration file content.
*/
export declare const generateDeclarationFile: (sourceCode: string) => string;
/**
* Transforms the given source code into TypeScript, returning an object with the transformed code and declaration.
*
* @param {string} source - The source code to transform.
* @return {{ code: string, declaration: string }} An object with the transformed code and declaration.
*/
export declare const oxcTransform: (source: string) => {
code: string;
declaration?: string;
};
//# sourceMappingURL=oxc.d.ts.map