UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

12 lines (11 loc) 350 B
export type Success = (slicedStr: string, fullStr: string) => void; export type Fail = (err?: any) => void; export type Complete = (success: boolean, msg?: any) => void; export interface RequestParams { url: string; data?: Record<string, any>; success?: Success; fail?: Fail; complete?: Complete; isTestEnv?: () => boolean; }