UNPKG

@ng-web-apis/workers

Version:
16 lines (15 loc) 624 B
import type { OnDestroy, PipeTransform } from '@angular/core'; import type { Observable } from 'rxjs'; import type { WorkerFunction } from '../types/worker-function'; import * as i0 from "@angular/core"; export declare class WorkerPipe implements PipeTransform, OnDestroy { private fn; private worker; private observer; transform<T, R>(value: T, fn: WorkerFunction<T, R>): Observable<R>; ngOnDestroy(): void; private terminateWorker; private initNewWorker; static ɵfac: i0.ɵɵFactoryDeclaration<WorkerPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<WorkerPipe, "waWorker", true>; }