Answers for "Operator '+' cannot be applied to types '() => number' and 'number'"

0

Operator '+' cannot be applied to types '() => number' and 'number'

// Credit: https://stackoverflow.com/questions/47484525/operator-cannot-be-applied-to-types-number-and-1

you can try adding the unary operator + like,

CurrentPage: +this.paging.PageIndex + 1

which will also work in your case.

Hope this helps!
Posted by: Guest on July-26-2021

Code answers related to "Operator '+' cannot be applied to types '() => number' and 'number'"

Browse Popular Code Answers by Language