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

Function isFormControlState

packages/forms/src/model/form_control.ts:443–451  ·  view source on GitHub ↗
(formState: unknown)

Source from the content-addressed store, hash-verified

441}
442
443function isFormControlState(formState: unknown): formState is FormControlState<unknown> {
444 return (
445 typeof formState === 'object' &&
446 formState !== null &&
447 Object.keys(formState).length === 2 &&
448 'value' in formState &&
449 'disabled' in formState
450 );
451}
452
453export const FormControl: ɵFormControlCtor = class FormControl<TValue = any>
454 extends AbstractControl<TValue>

Callers 2

constructorMethod · 0.70
_applyFormStateMethod · 0.70

Calls 1

keysMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…