Typescript Error: setInterval - Type 'Timer' is not assignable to type 'number'

Discussão em 'Angular' iniciado por Ricardo Rocha, Fevereiro 24, 2025.

  1. I have the following code:

    let onSizeChangeSetInterval = setInterval(() => {...}, 30);


    When I compile this code, I'm getting the following error:


    ERROR in src/components/popover/popover.component.ts(98,17): error TS2322: Type 'Timer' is not assignable to type 'number'. src/modules/forms-ui/formly/types/daterange/picker.daterange.component.ts(186,9): error TS2322: Type 'Timer' is not assignable to type 'number'.
    ​

    Continue reading...

Compartilhe esta Página