Type Alias RejectValues<V, S>

RejectValues<V, S>: V extends Filterable
    ? IsWideFilterable<V> extends true
        ? ProtectIfNonEmptyArray<S, S[number]>
        : IsNonEmptyArray<S> extends true
            ? ProcessFilterValues<V, S, [], "omit">
            : ProtectIfNonEmptyArray<S, Exclude<S[number], V>>
    : ProtectIfNonEmptyArray<S, S[number]>

Returns an array of values from S that are not assignable to V.

Type Parameters

  • V
  • S extends ReadonlyArray<unknown>