UNPKG

api-simplex-handler

Version:

一个api封装解析器

15 lines (14 loc) 463 B
import { IApiParamsCollection } from "./IApiParamsCollection"; import { 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 };