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

Function isAbstractControlOptions

packages/forms/src/form_builder.ts:22–31  ·  view source on GitHub ↗
(
  options: AbstractControlOptions | {[key: string]: any} | null | undefined,
)

Source from the content-addressed store, hash-verified

20import {FormGroup, FormRecord, UntypedFormGroup} from './model/form_group';
21
22function isAbstractControlOptions(
23 options: AbstractControlOptions | {[key: string]: any} | null | undefined,
24): options is AbstractControlOptions {
25 return (
26 !!options &&
27 ((options as AbstractControlOptions).asyncValidators !== undefined ||
28 (options as AbstractControlOptions).validators !== undefined ||
29 (options as AbstractControlOptions).updateOn !== undefined)
30 );
31}
32
33/**
34 * The union of all validator types that can be accepted by a ControlConfig.

Callers 2

groupMethod · 0.85
controlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…