Skip to content

Function: defineConfig() ​

ts
function defineConfig<T>(config): RbacCliConfig<T>;

Defined in: packages/cli/src/config.ts:30

Type helper for rbac.config.ts. With a typed engine, the names in seed are checked against it.

Type Parameters ​

Type ParameterDefault type
T extends RbacTypeConfigDefaultRbacTypes

Parameters ​

ParameterType
configRbacCliConfig<T>

Returns ​

RbacCliConfig<T>

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