Sanity Library Reference Docs
    Preparing search index...

    Type Alias DuplicateKeysError

    This error may happen for arrays of objects where one or more of the members are having duplicate keys

    type DuplicateKeysError = {
        duplicates: [index: number, key: string][];
        schemaType: ArraySchemaType;
        type: "DUPLICATE_KEYS";
    }
    Index

    Properties

    duplicates: [index: number, key: string][]
    schemaType: ArraySchemaType
    type: "DUPLICATE_KEYS"