|
|
|
|
|
by topce
1087 days ago
|
|
he he
I tried to fix this in Typescript but look like they do not care
So I made and use (for my projects) my own version of typescript ;-)
https://www.npmjs.com/package/@topce/typescript/v/5.1.6
There indeed you would have compile time error error TS2345: Argument of type '(string: string, radix?: number) => number' is not assignable to parameter of type '(value: string, index: number, array: string[]) => number'.
Target signature provides too few arguments. Expected 3 , but got 2. console.log(["1","2","3"].map(parseInt)); |
|
I'm curious - have you been using this for long? Have you noticed any code which this flagged and which you thought it was being too strict? I feel like I would want this flag on all of the time, but I'm curious if there are edge cases that I have not considered but maybe you have experienced.