Skip to content

Type Alias: NameList<N> ​

ts
type NameList<N> = N | readonly N[];

Defined in: packages/sveltekit/src/checker.ts:4

A permission or role name, or a list of them. N is string without typed names.

Type Parameters ​

Type ParameterDefault type
N extends stringstring

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