tsc 7.0.2 --strict: [1].map((x:string)=>x) -> error TS2345: Argument of type '(x: string) => string' is not assignable to parameter of type '(value: number, index: number, array: number[]) => string'.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on ts2345_fn.ts containing: [1].map((x:string)=>x); export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2345: Argument of type '(x: string) => string' is not assignable to parameter of type '(value: number, index: number, array: number[]) => string'. | Types of parameters 'x' and 'value' are incompatible. | Type 'number' is not assignable to type 'string'.