Closed golovinstan closed 1 year ago
@golovinstan
form.$values
it's generic type FormValues<T>
.
Type:
brigadeForm.$values.getState().avarRefereeId
and check type of avarRefereeId
combine dont accept brigadeForm.$values.getState()
@golovinstan Let's take a closer look:
It's generic
It's not { cityId: { init: string; rules: Rule<string, any, any>[]; validateOn: ("change" | "blur")[] }, ... }
@golovinstan
Yes, because it's GENERIC of { cityId: { init: string; rules: Rule<string, any, any>[]; validateOn: ("change" | "blur")[] },
Effecor-forms infer's the type of form.$values using the generic type FormValues
MyType<AnotherType>
and AnotherType
are different types.