Type alias WorkerResponse<T, P>

WorkerResponse<T, P>: {
    data: P;
    messageId: number;
    requestId: number;
    type: T;
}

Type Parameters

  • T
  • P

Type declaration

  • Readonly data: P
  • Readonly messageId: number
  • Readonly requestId: number
  • Readonly type: T