Type alias WorkerRequest<T, P>

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

Type Parameters

  • T
  • P

Type declaration

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