Sanity Library Reference Docs
    Preparing search index...

    Interface DocumentOptions

    Interface for options of Partial Documents. See PartialDocumentNode

    interface DocumentOptions {
        id: string;
        template?: string;
        templateParameters?: Record<string, unknown>;
        type: string;
    }
    Index

    Properties

    id: string

    Document Id

    template?: string

    Document Template

    templateParameters?: Record<string, unknown>

    Template parameters

    type: string

    Document Type