I am trying to determine if this is really a bug before contributing anything to GitHub.
When enabled noUnusedParameters
, the TypeScript compiler will fail on something like:
const foo = ['one', 'two', 'three'];
foo.forEach((item: string, index: number) => {
});
c error TS6133: 'item' is declared but never used.
But while it is not specifically used, it is used in that the second argument to the forEach
iterator function is the index.
Did I miss something?
source
share