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

Method _validateType

src/material/input/input.ts:486–493  ·  view source on GitHub ↗

Make sure the input is a supported type.

()

Source from the content-addressed store, hash-verified

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

Callers 1

typeMethod · 0.95

Calls 1

Tested by

no test coverage detected