You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
260 B

2 years ago
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;