Skip to content

Type Alias: Many<T> ​

ts
type Many<T> = T | readonly T[];

Defined in: packages/core/src/types.ts:156

Lets methods accept both fn('a', 'b') and fn(['a', 'b']).

Type Parameters ​

Type Parameter
T

Released under the MIT License. Inspired by spatie/laravel-permission.