Sanity Library Reference Docs
    Preparing search index...
    • Classifies def against the latest deployed version of its name via the deploy planner — a content change is always a new version, never an in-place update. def passes the same boundary parse deploy uses (parseDefinitionInput), so diff and deploy accept and reject the same input shape.

      Type Parameters

      • T extends
            | Record<keyof T & string, unknown>
            | {
                description?: string;
                fields?: FieldEntry[];
                groups?: Group[];
                initialStage: string;
                lifecycle?: WorkflowLifecycle;
                name: string;
                predicates?: Record<string, string>;
                roleAliases?: RoleAliases;
                semantics?: Semantic[];
                stages: Stage[];
                start?: StartBlock;
                title: string;
            } & { [K in string
            | number
            | symbol]?: undefined }

      Parameters

      • __namedParameters: { def: T; latestRaw: Record<string, unknown> | undefined; target: DeployTarget }

      Returns DiffEntry