MCPcopy
hub / github.com/angular/angular / stateOf

Method stateOf

packages/forms/signals/src/api/types.ts:933–933  ·  view source on GitHub ↗

Gets the state of the field represented by the given path.

(
    p: CompatSchemaPath<PControl>,
  )

Source from the content-addressed store, hash-verified

931 // structure so that TypeScript accepts the assignment gracefully.
932 /** Gets the state of the field represented by the given path. */
933 stateOf<PControl extends AbstractControl>(
934 p: CompatSchemaPath<PControl>,
935 ): [PControl] extends [any] ? ReadonlyCompatFieldState<PControl> : never;
936 stateOf<PValue>(

Callers 4

validateAsyncFunction · 0.65
wrapWithPredicatesFunction · 0.65

Calls

no outgoing calls

Tested by 1