You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
Specifying TypesScript Version: 2.3 causes "error TS2370: A rest parameter must be of an array type." #270
Error: Errors in typescript@2.8 for external dependencies:
../node_modules/@types/parsimmon/index.d.ts(394,32): error TS2370: A rest parameter must be of an array type.
The index.d.ts file has
// TypeScript Version: 2.3
The problem is resolved when I changed the version to 3.0 in index.d.ts.
// TypeScript Version: 3.0
What can I do to make dtslint work with // Typescript Version: 2.3?
changed the title [-]Errors in typescript@2.8 for external dependencies:[/-][+]Specifying TypesScript Version: 2.3 causes "error TS2370: A rest parameter must be of an array type."[/+]on Feb 14, 2020
Upon further testing, I found that the problem can be resolved without any modification to @types/parsimmon@1.10.1. As described above, by changing to // Typescript Version: 3.0 in index.d.ts.
Activity
[-]Errors in typescript@2.8 for external dependencies:[/-][+]Specifying TypesScript Version: 2.3 causes "error TS2370: A rest parameter must be of an array type."[/+]kygoh commentedon Feb 14, 2020
Initially, I thought the problem was with
@types/parsimmon@1.10.1and raised issue #42368 in DefinitelyTyped.Upon further testing, I found that the problem can be resolved without any modification to
@types/parsimmon@1.10.1. As described above, by changing to// Typescript Version: 3.0inindex.d.ts.EmandM commentedon Mar 16, 2020
Also looking for a solution to this