Sanity Library Reference Docs
    Preparing search index...

    Type Alias IncompatibleTypeError

    This error may happen if the member type is structurally incompatible with the defined schema type. Some examples:

    • the schema type defines an array, but the actual value is an object (or vice versa)
    • the schema type defines a number, but the actual value is a string (or vice versa)
    • the schema type defines an object, but the actual value is a string (or vice versa)
    type IncompatibleTypeError = {
        expectedSchemaType: SchemaType;
        resolvedValueType: string;
        type: "INCOMPATIBLE_TYPE";
        value: unknown;
    }
    Index

    Properties

    expectedSchemaType: SchemaType
    resolvedValueType: string
    type: "INCOMPATIBLE_TYPE"
    value: unknown