Files
yusheng-h5/uni_modules/UniDevTools/node_modules/licia/golangify.d.ts

9 lines
260 B
TypeScript
Raw Normal View History

2025-08-11 11:06:07 +08:00
declare function golangify<T, U = Error>(
fn: (...args: any[]) => Promise<T>
): (...args: any[]) => Promise<[T | undefined, U | null]>;
declare function golangify<T, U = Error>(
p: Promise<T>
): Promise<[T | undefined, U | null]>;
export = golangify;