Sanity App SDK
    Preparing search index...

    Interface DocumentOptions<TPath, TDocumentType, TDataset, TProjectId>Beta

    Options for specifying a document and optionally a path within it.

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

    Type Parameters

    • TPath extends string | undefined = undefined
    • TDocumentType extends string = string
    • TDataset extends string = string
    • TProjectId extends string = string

    Hierarchy (View Summary)

    Index

    Properties

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