MCPcopy
hub / github.com/angular/components / _validateType

Method _validateType

src/material/input/input.ts:484–491  ·  view source on GitHub ↗

Make sure the input is a supported type.

()

Source from the content-addressed store, hash-verified

482
483 /** Make sure the input is a supported type. */
484 protected _validateType() {
485 if (
486 MAT_INPUT_INVALID_TYPES.indexOf(this._type) > -1 &&
487 (typeof ngDevMode === 'undefined' || ngDevMode)
488 ) {
489 throw getMatInputUnsupportedTypeError(this._type);
490 }
491 }
492
493 /** Checks whether the input type is one of the types that are never empty. */
494 protected _isNeverEmpty() {

Callers 1

typeMethod · 0.95

Calls 1

Tested by

no test coverage detected