• Phantom payload marker used to declare the payload type for a named variant inside defineMsgs. Returns a no-op token the builder uses to type-thread its variant constructors. The payload object itself is never instantiated at runtime — the helper only forwards the kind plus the user-supplied payload.

    Type Parameters

    • P extends object

      The payload object type for the variant.

    Returns PayloadMarker<P>

    const msg = defineMsgs({
    set: payload<{ value: number }>(),
    reset: null,
    })