@loaders.gl/worker-utils
Version:
Utilities for running tasks on worker threads
14 lines • 455 B
TypeScript
/**
* Creates a loadable URL from worker source or URL
* that can be used to create `Worker` instances.
* Due to CORS issues it may be necessary to wrap a URL in a small importScripts
* @param props
* @param props.source Worker source
* @param props.url Worker URL
* @returns loadable url
*/
export declare function getLoadableWorkerURL(props: {
source?: string;
url?: string;
}): any;
//# sourceMappingURL=get-loadable-worker-url.d.ts.map