EASYAIuniappNewUI/node_modules/licia/golangify.d.ts
2025-02-08 18:50:38 +08:00

9 lines
260 B
TypeScript

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;