MCPcopy Index your code
hub / github.com/angular/angular / stateOf

Method stateOf

packages/forms/signals/src/field/context.ts:165–167  ·  view source on GitHub ↗
(p: SchemaPath<TModel, SchemaPathRules> | CompatSchemaPath<any>)

Source from the content-addressed store, hash-verified

163 p: SchemaPath<PValue, SchemaPathRules>,
164 ): [PValue] extends [any] ? ReadonlyFieldState<PValue> : never;
165 stateOf<TModel>(p: SchemaPath<TModel, SchemaPathRules> | CompatSchemaPath<any>): any {
166 return this.resolve<TModel>(p as any)();
167 }
168 readonly valueOf = <TValue>(p: SchemaPath<TValue, SchemaPathRules>) => {
169 const result = this.resolve(p)().value();
170

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.95

Tested by

no test coverage detected