@georgestagg/webr
Version:
The statistical programming langauge R compiled into WASM for use in a web browser and node.
14 lines (13 loc) • 775 B
TypeScript
import { RawType } from './robj';
export declare type ResolveFn = (_value?: unknown) => void;
export declare type RejectFn = (_reason?: any) => void;
export declare function promiseHandles(): {
resolve: (_value?: unknown) => void;
reject: (_reason?: any) => void;
promise: Promise<unknown>;
};
export declare function sleep(ms: number): Promise<unknown>;
export declare function replaceInObject(obj: unknown, test: (obj: any) => boolean, replacer: (obj: any, ...replacerArgs: any[]) => unknown, ...replacerArgs: unknown[]): unknown;
export declare function unpackScalarVectors(obj: RawType): RawType;
export declare function newCrossOriginWorker(url: string, cb: (worker: Worker) => void): void;
export declare function isCrossOrigin(urlString: string): boolean;