Sanity App SDK
    Preparing search index...

    Interface DocumentTypeHandle<TDocumentType, TDataset, TProjectId>

    Identifies a specific document type within a Sanity dataset and project. Includes projectId, dataset, and documentType. Optionally includes a documentId, useful for referencing a specific document type context, potentially without a specific document ID.

    interface DocumentTypeHandle<
        TDocumentType extends string = string,
        TDataset extends string = string,
        TProjectId extends string = string,
    > {
        dataset?: TDataset;
        documentId?: string;
        documentType: TDocumentType;
        perspective?: ReleasePerspective | ClientPerspective;
        projectId?: TProjectId;
    }

    Type Parameters

    • TDocumentType extends string = string
    • TDataset extends string = string
    • TProjectId extends string = string

    Hierarchy (View Summary)

    Index

    Properties

    dataset?: TDataset
    documentId?: string
    documentType: TDocumentType
    perspective?: ReleasePerspective | ClientPerspective
    projectId?: TProjectId