Function: defineFieldWithDeps()
ts
function defineFieldWithDeps<Deps>(): DefineFieldWithDeps<Deps>;Defined in: core/src/definitions/define-field.ts:73
Defines a field 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, so the rest is still inferred: defineFieldWithDeps<{ cartId: string }>()({ schema, validateAsync }).
Type Parameters
| Type Parameter |
|---|
Deps |
Returns
DefineFieldWithDeps<Deps>