Type Alias UniqueItems<Value>

UniqueItems<Value>: TagBase<{
    exclusive: true;
    kind: "uniqueItems";
    schema: {
        uniqueItems: true;
    };
    target: "array";
    validate: Value extends true
        ? "$input.length <= 1 || ($input.length === new Set($input).size)"
        : undefined;
    value: Value;
}>

Type Parameters

  • Value extends boolean = true