@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)
33 lines (32 loc) • 859 B
TypeScript
export interface IConfig {
url: string;
outDir?: string;
type?: 'umi3' | 'axios';
diff?: boolean;
zod?: boolean;
mock?: {
includePath?: string[];
excludePath?: string[];
} | boolean;
}
export declare function defineConfig(options: IConfig): IConfig;
declare class Config implements IConfig {
url: string;
type?: 'umi3' | 'axios';
outDir: string;
diff: boolean;
zod: boolean;
mock: boolean | {
includePath?: string[] | undefined;
excludePath?: string[] | undefined;
} | undefined;
loadRuntime(): void;
loadConfig(opt: IConfig): void;
getOutPath(): string;
getServicePath(serviceName?: string): string;
getMockPath(serviceName?: string): string;
getAstCachePath(): string;
getLogPath(): string;
}
export declare const config: Config;
export {};