Type alias WorkerFunction<RequestType, ResultType>
WorkerFunction<RequestType, ResultType>: ((data: RequestType) => {
message: ResultType;
transfer?: Transferable[];
} | undefined)
Type declaration
-
- (data: RequestType): {
message: ResultType;
transfer?: Transferable[];
} | undefined
-
Returns {
message: ResultType;
transfer?: Transferable[];
} | undefined