WorkerFunc
katanakit-js / WorkerFunc
Type Alias: WorkerFunc<TInput, TOutput>
Section titled “Type Alias: WorkerFunc<TInput, TOutput>”type WorkerFunc<TInput, TOutput> = (data) => TOutput | Promise<TOutput>;Defined in: types/core/workers.ts:1
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
TInput |
unknown |
TOutput |
unknown |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data |
TInput |
Returns
Section titled “Returns”TOutput | Promise<TOutput>