@tessantech/rtc-light
Version:
Verry light package to simplify Webrtc and make a videoconference in a few lines of code.
12 lines (11 loc) • 447 B
TypeScript
export declare class ExternalPromise<T> extends Promise<T> {
private store;
constructor(executor?: Executor<T>, store?: Store<T>);
resolve(value: T): void;
reject(error?: any): void;
}
export declare type Executor<T> = (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void;
export declare type Store<T> = {
resolve?: (value: T | PromiseLike<T>) => void;
reject?: (reason?: any) => void;
};