• Extracts the full state object from a parsed shadow payload.

    Type Parameters

    • T extends Record<string, unknown> = Record<string, unknown>

    Parameters

    • parsed: unknown

      Parsed shadow document (or null)

    Returns T

    The state object (reported + desired), or {} when absent / non-object