MCPcopy Create free account
hub / github.com/angular/components / isField

Function isField

src/cdk/stepper/stepper.ts:626–628  ·  view source on GitHub ↗
(value: StepControl)

Source from the content-addressed store, hash-verified

624}
625
626function isField(value: StepControl): value is Field<unknown> {
627 return typeof value === 'function';
628}
629
630function isValid(control: StepControl): boolean {
631 return isField(control) ? control().valid() : control.valid;

Callers 4

isValidFunction · 0.85
isInvalidFunction · 0.85
isPendingFunction · 0.85
resetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected