Initial import

This commit is contained in:
2025-11-05 20:35:04 +01:00
commit 5b1fd847c2
4586 changed files with 685044 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
export function fromCallback<T, S extends symbol>(callback: Callback<T> | undefined, symbol: S)
: Callback<T> & { [K in S]?: Promise<T> };
export function fromCallback<T>(callback: Callback<T> | undefined)
: Callback<T> & { promise?: Promise<T> };
export function fromPromise<T>(promise: Promise<T>, callback: Callback<T> | undefined)
: Promise<T> | undefined;
type Callback<T> = (err: Error | null, result: T) => void;