Type alias WorkerFunction<RequestType, ResultType>

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

Type Parameters

  • RequestType

  • ResultType

Type declaration

    • (data: RequestType): {
          message: ResultType;
          transfer?: Transferable[];
      } | undefined
    • Parameters

      • data: RequestType

      Returns {
          message: ResultType;
          transfer?: Transferable[];
      } | undefined

Generated using TypeDoc