Skip to content

Function: defineGroupWithDeps() ​

ts
function defineGroupWithDeps<Deps>(): DefineGroupWithDeps<Deps>;

Defined in: core/src/definitions/define-group.ts:184

Defines a group that reads dependencies: values from outside the form that its rules need. The dependency type goes in the first call and the options in the second: defineGroupWithDeps<{ countries: Array<string> }>()({ ... }).

Type Parameters ​

Type Parameter
Deps

Returns ​

DefineGroupWithDeps<Deps>

Released under the MIT License.