UNPKG

api-simplex-handler

Version:

一个api封装解析器

16 lines (14 loc) 479 B
import {IApiParamsCollection} from "./IApiParamsCollection"; import {Hanger, HangerIndex} from "./TypeDefine"; interface IApi { path?: string, method?: string, params?: IApiParamsCollection | string[], paramsDefault?: "body" | "query" | "path", limit?: number, cachePolicy?: "noCache" | "always" | "save" | "dynamic", expirationTime?: number, cacheKey?: string, hanger?: HangerIndex<this> | HangerIndex<this>[] } export {IApi}