Skip to content

Type Alias: NoNestedArrays<T> ​

NoNestedArrays<T> = Extract<T[number], readonly unknown[]> extends never ? T : never

The tuple T when none of its items is an array, else never: rejects the nested arrays of schemas given to ArraySchema.items().

Type Parameters ​

T ​

T extends readonly unknown[]

Released under the MIT License.