bug(CdkObserveContent): Incorrect typing for CdkObserveContent's [debounce] property - components
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 : https://github.com/angular/components/blob/43997571da4d599815d8bc4bb366f398f8652db7/src/cdk/observers/observe-content.ts#L160
Static input type declaration : https://github.com/angular/components/blob/43997571da4d599815d8bc4bb366f398f8652db7/src/cdk/observers/observe-content.ts#L203
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
1 Answer:
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Read next
- Добавить возможность использовать ЯП Rust для решения. - Elixir codebattle
- Blurriness in FMVs when selecting adaptive downsampling (PAL) - Cplusplus duckstation
- Client configuration for using PCKE? - JavaScript node-oidc-provider
- fatal: pathspec - Filename too long - GIT - woocommerce
- Xsharedpreference Failing to read prefs file above SDK 24 - EdXposed
- OpenSfM [Question] how to get dense textured mesh - JavaScript
- Trans component doesn't work with nested tags - JavaScript react-i18next
- surge fractional ratios in FM oscillators C