Type alias MessageData

MessageData: {
    data?: Serialized;
    error?: Serialized | null;
    id: string;
    mustQueue?: boolean;
    origin: string;
    sourceMapId: string | number | null;
    targetMapId?: string | number | null;
    type: MessageType | "<cancel>" | "<response>";
}

This is used to define the parameters of the message that is sent to the worker and back

Type declaration

  • Optional data?: Serialized
  • Optional error?: Serialized | null
  • id: string
  • Optional mustQueue?: boolean
  • origin: string
  • sourceMapId: string | number | null
  • Optional targetMapId?: string | number | null
  • type: MessageType | "<cancel>" | "<response>"