UNPKG

api-simplex-handler

Version:

一个api封装解析器

12 lines (11 loc) 691 B
import { IApiCollection } from "./IApiCollection"; import { ApiConfig, HangerIndex, ResponseHandlerDefineFunction, TransformFunction } from "./TypeDefine"; declare class ApiFactory { responseHandlerDefineFunction: ResponseHandlerDefineFunction; apiConfig: ApiConfig; hanger: HangerIndex<any> | HangerIndex<any>[] | undefined; constructor(responseHandlerDefineFunction: ResponseHandlerDefineFunction, apiConfig: ApiConfig, hanger?: HangerIndex<any> | HangerIndex<any>[]); processApiCollection<T extends IApiCollection>(apiCollection: T, basePath: string, hanger?: HangerIndex<any> | HangerIndex<any>[]): TransformFunction<T>; private factory; } export { ApiFactory };