type: string,
isMain: boolean,
fn: (data: Data) => Response,
- protected mainWorker?: MainWorker | null,
+ protected mainWorker: MainWorker | null,
public readonly opts: WorkerOptions = {
/**
* The kill behavior option on this Worker or its default value.
* @returns Message of the error.
*/
protected handleError (e: Error | string): string {
- return (e as unknown) as string
+ return e as unknown as string
}
/**