Function: isWorkerConstructor()
function isWorkerConstructor(callee: Readonly<Expression>): boolean;
Defined in: _internal/worker-code-loading.ts:79
Check whether a constructor callee targets Worker or SharedWorker.
Parametersâ
calleeâ
Readonly<Expression>
Constructor callee to inspect.
Returnsâ
boolean
Whether the callee is a worker constructor.