Skip to content

Function: splitRequirementArgs() ​

ts
function splitRequirementArgs<O>(args): object;

Defined in: packages/core/src/requirements.ts:193

Splits (...names, options?) guard arguments: a trailing plain object is the options.

Type Parameters ​

Type Parameter
O extends object

Parameters ​

ParameterType
argsreadonly (RequirementNames | O)[]

Returns ​

object

NameTypeDefined in
namesRequirementNames[]packages/core/src/requirements.ts:195
optionsO | undefinedpackages/core/src/requirements.ts:195

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