Sanity Library Reference Docs
    Preparing search index...

    Interface PreviewConfig<Select, PrepareValue>

    interface PreviewConfig<
        Select extends Record<string, string> = Record<string, string>,
        PrepareValue extends Record<keyof Select, any> = Record<keyof Select, any>,
    > {
        prepare?: (
            value: PrepareValue,
            viewOptions?: PrepareViewOptions,
        ) => PreviewValue;
        select?: Select;
    }

    Type Parameters

    Index

    Properties

    Properties

    prepare?: (
        value: PrepareValue,
        viewOptions?: PrepareViewOptions,
    ) => PreviewValue
    select?: Select