Make sure the input is a supported type.
()
| 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() { |
no test coverage detected