Forbid empty arrays
A bit more of type safety with array parameters.
export type NonEmptyArray<T> = [T, ...T[]];...roles: NonEmptyArray<Role>Last updated
A bit more of type safety with array parameters.
export type NonEmptyArray<T> = [T, ...T[]];...roles: NonEmptyArray<Role>Last updated