Sanity Library Reference Docs
    Preparing search index...
    • Resolves an authored deployment's partition to its stored address segment: the partition, else a deprecated tag, else 'default'. A tag must be a valid partition and, when partition is also set, must equal it. warnings holds one deprecation message, prefixed by subject, when a tag is present; the caller decides where to show it.

      Parameters

      • input: { partition?: string; tag?: string }
      • Optionalsubject: string

      Returns { partition: string; warnings: string[] }

      ContractViolationError, exported from the package root, when tag is invalid or differs from partition, or when the partition is invalid.