UNPKG

@alexaegis/common

Version:
10 lines 401 B
/** * Returns whatever you pass to it. */ export declare const identity: <V>(r?: V) => V | undefined; /** * Returns whatever you pass to it. Asynchronously. While the regular * `identity` function is already awaitable, this one is always thenable. */ export declare const identityAsync: <V>(value?: V, mode?: "micro" | "macro") => Promise<unknown>; //# sourceMappingURL=identity.function.d.ts.map