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

Method _isValid

src/material/timepicker/timepicker-input.ts:423–425  ·  view source on GitHub ↗

Checks whether a value is valid.

(value: D | null)

Source from the content-addressed store, hash-verified

421
422 /** Checks whether a value is valid. */
423 private _isValid(value: D | null): boolean {
424 return !value || this._dateAdapter.isValid(value);
425 }
426
427 /** Transforms an arbitrary value into a value that can be assigned to a date-based input. */
428 private _transformDateInput<D>(value: unknown): D | null {

Callers 3

_handleBlurMethod · 0.95
_updateFormsStateMethod · 0.95
_assignUserSelectionMethod · 0.95

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected