- Add GETTING_STARTED.md with quick start guide and development modes - Add INSTALL.sh automated installation script - Add INSTALLATION_CHECKLIST.md, INSTALLATION_SUCCESS.md, and INSTALLATION_SUMMARY.md - Add QUICK_REFERENCE.md for common commands - Add SETUP_GUIDE.md with detailed setup instructions - Update README.md with improved project overview - Add did-wallet app dependencies and node_modules
11 lines
429 B
TypeScript
11 lines
429 B
TypeScript
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;
|