Sanity Library Reference Docs
    Preparing search index...

    Type Alias InvalidItemTypeErrorBeta

    This error may happen for arrays (of both objects and primitive values) if we encounter items that are not valid according to the schema definition

    type InvalidItemTypeError = {
        resolvedValueType: string;
        type: "INVALID_ITEM_TYPE";
        validTypes: SchemaType[];
        value: unknown;
    }
    Index

    Properties

    resolvedValueType: string
    type: "INVALID_ITEM_TYPE"
    validTypes: SchemaType[]
    value: unknown