Sanity Library Reference Docs
    Preparing search index...
    • Parse a fetched sanity.workflow.instance document, failing hard with a PersistedDocShapeError naming the document and every offending field. The caller's model-version gate (assertReadableModel) must run first: a doc from beyond the reader floor is a governed ModelVersionAheadError, not a shape error.

      Parameters

      • doc: unknown

      Returns WorkflowInstance