I have a simple function which returns array's length
const test = (list: any[]) => list.length;
Which generates eslint error:
no-explicit-any: Unexpected any. Specify a different type. (javascript-eslint)
What would be the correct way to write this function in TypeScript?