Sanity Library Reference Docs
    Preparing search index...
    • Entry-level isSingleDocRefKind: narrows a resolved entry to the single-GDR arms (doc.ref / subject) — the value is one GDR (or null) and the entry may carry the accepted-target types.

      Parameters

      Returns entry is
          | {
              _key: string;
              _type: "doc.ref";
              description?: string;
              name: string;
              options?: ChoiceOptions;
              resolvedAt?: string;
              title?: string;
              validation?: ScalarValidation;
              value: GlobalDocumentReference<string>
              | null;
          } & Record<never, never> & { types?: string[] }
          | {
              _key: string;
              _type: "subject";
              description?: string;
              name: string;
              options?: ChoiceOptions;
              resolvedAt?: string;
              title?: string;
              validation?: ScalarValidation;
              value: GlobalDocumentReference<string> | null;
          } & Record<never, never> & { types?: string[] }