vtils

Home > types > OneOrMore

OneOrMore type

T | T[]

Signature:

export declare type OneOrMore<T> = T | T[];

Example

type X = OneOrMore<number> // => number | number[]