/**
 * Message sent by web worker that requests to resolve actual
 * URLs of it's dependencies.
 *
 * Main thread is expected.
 */ export interface WorkerBootstrapRequest { type : "worker-bootstrap-request" ; dependencies : string [ ] ; } export interface WorkerBootstrapResponse { type : "worker-bootstrap-response" ; resolvedDependencies : string [ ] ; } export function isWorkerBootstrapRequest ( message ) { return ( message && message . type === "worker-bootstrap-request" && Array . isArray ( message . dependencies ) ) ; } export function isWorkerBootstrapResponse ( message ) { return ( message && message . type === "worker-bootstrap-response" && Array . isArray ( message . resolvedDependencies ) ) ; }