+ readonly taskId?: string
+}
+
+/**
+ * Message object that is passed between main worker and worker.
+ *
+ * @typeParam Data - Type of data sent to the worker or execution response. This can only be structured-cloneable data.
+ * @typeParam ErrorData - Type of data sent to the worker triggering an error. This can only be structured-cloneable data.
+ * @internal
+ */
+export interface MessageValue<Data = unknown, ErrorData = unknown>
+ extends Task<Data> {
+ /**
+ * Kill code.
+ */
+ readonly kill?: KillBehavior | true | 'success' | 'failure'
+ /**
+ * Worker error.
+ */
+ readonly workerError?: WorkerError<ErrorData>