Reproduction
Input debounce of CdkObserveContent directive has type number, but the compiler hint property ngAcceptInputType_debounce is incorrectly declared as BooleanInput (instead of NumberInput ?).
Hence, Angular compiler complains when strictTemplates option is enabled.
debounce input declaration :
|
set debounce(value: number) { |
Static input type declaration :
|
static ngAcceptInputType_debounce: BooleanInput; |
Expected Behavior
Angular compiler does not complain about debounce property of CdkObserveContent when a number is assigned to it.
Actual Behavior
Angular compiler reports an error when a number is bound to debounce property of CdkObserveContent.
Environment
- Angular: 10.0.14
- CDK/Material: 10.1.3
- Browser(s): Chrome latest
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10
Reproduction
Input
debounceofCdkObserveContentdirective has typenumber, but the compiler hint propertyngAcceptInputType_debounceis incorrectly declared asBooleanInput(instead ofNumberInput?).Hence, Angular compiler complains when
strictTemplatesoption is enabled.debounceinput declaration :components/src/cdk/observers/observe-content.ts
Line 160 in 4399757
Static input type declaration :
components/src/cdk/observers/observe-content.ts
Line 203 in 4399757
Expected Behavior
Angular compiler does not complain about
debounceproperty ofCdkObserveContentwhen a number is assigned to it.Actual Behavior
Angular compiler reports an error when a number is bound to
debounceproperty ofCdkObserveContent.Environment