Gets the state of the field represented by the given path.
(
p: CompatSchemaPath<PControl>,
)
| 980 | // structure so that TypeScript accepts the assignment gracefully. |
| 981 | /** Gets the state of the field represented by the given path. */ |
| 982 | stateOf<PControl extends AbstractControl>( |
| 983 | p: CompatSchemaPath<PControl>, |
| 984 | ): [PControl] extends [any] ? ReadonlyCompatFieldState<PControl> : never; |
| 985 | stateOf<PValue>( |
no outgoing calls