If a function uses destructuring to consume the last argument in a function or has a rest argument, the argument may not have a trailing comma.
function test(...args: any[]) {}
Fix: Remove trailing comma
To fix the error, remove the trailing comma:
function test(...args: any[]) {}
Related: TS1014