/** ## `FnReturn` 参数为空,返回值为`T`的函数 @category Gymnastics */ export type FnReturn = () => T; /** ## `FnReturnAsync` 参数为空,返回值为`Promise`的函数 @category Gymnastics */ export type FnReturnAsync = () => Promise; /** ## `Fn` 参数为单个的`T`,返回值为`R`的函数 @category Gymnastics */ export type Fn = (val: T) => R; /** ## `Fns` 参数为任意个,返回值为`T`的函数 */ export type Fns = (...args: any[]) => T; /** ## `FnPs` 参数为`P`,返回值为`R`的函数 @category Gymnastics */ export type FnPs

= (...args: P) => R; /** ## `ValueOrFunc` : 可能是T也可能是返回值为T的函数 @example ```ts const a = 1 const b = () => 2 const Val : ValueOrFunc = Date.now() % 2 == 0 ? a : b ``` @category Gymnastics */ export type ValueOrFunc = T | (() => T); /** ## `AnyFunc` 可表示为任意函数 @category Gymnastics */ export type AnyFunc = (...args: any[]) => any; /** ## `PromiseResolve` : Promise的resolve函数 @category Gymnastics */ export type PromiseResolve = Fn; /** ## `PromiseReject` : Promise的reject函数 @category Gymnastics */ export type PromiseReject = Fn; /** ## `PromiseOr` : Promise和非Promise叠加态 @category Gymnastics */ export type PromiseOr = T | Promise; //# sourceMappingURL=func.d.ts.map