Sanity Library Reference Docs
    Preparing search index...

    Type Alias DocumentLocationResolverObject<K>

    Document location resolver object

    type DocumentLocationResolverObject<K extends string = string> = {
        resolve: (
            value: Record<K, any> | null,
        ) => DocumentLocationsState | null | undefined | void;
        select: Record<K, string>;
    }

    Type Parameters

    • K extends string = string
    Index

    Properties

    Properties

    resolve: (
        value: Record<K, any> | null,
    ) => DocumentLocationsState | null | undefined | void

    Function that accepts a document with the selected fields and returns an optional document location state

    select: Record<K, string>

    Object for selecting document fields