rapplus
Version:
rapper, use http api as a function
17 lines (16 loc) • 716 B
TypeScript
import { Intf, IGeneratedCode, ICreatorExtr } from '../types';
import { IOptions } from './../uploadType/mergeOptions';
/** 生成 Models 文件 */
export declare function createModel(interfaces: Array<Intf>, extr: ICreatorExtr, config: IOptions): Promise<{
tsInterface: string;
tsCode: string;
tsInterfaceName: string[];
}[]>;
/** 生成 IResponseTypes */
export declare function createResponseTypes(interfaces: Array<Intf>): string;
export declare function createBaseRequestStr(interfaces: Array<Intf>, extr: ICreatorExtr, config: IOptions): Promise<{
tsInterfaceStr: string;
tsCodeStr: string;
tsInterfaceNames: string[];
}>;
export declare function createBaseIndexCode(): IGeneratedCode;