Repository: TypeScript
Issue: Debug Failure. Illegal value: 200 in signatureToSignatureDeclarationHelper
Labels: Bug

<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  4.0.2, 4.1.0-dev.20200828

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** Debug Failure Illegal value 200

**Code**

1. clone https://github.com/AlCalzone/node-zwave-js/tree/cd98592f082c769a517606065b242468cf8b0fa4
2. `npm ci`
3. `npm run lint:wotan`

**Expected behavior:**
no crash

**Actual behavior:**

4.0.2:
```
Error: Debug Failure. Illegal value: 200
    at signatureToSignatureDeclarationHelper (C:\Repositories\node-zwave-js\node_modules\typescript\lib\typescript.js:46902:82)
    at C:\Repositories\node-zwave-js\node_modules\typescript\lib\typescript.js:46107:106
    at withContext (C:\Repositories\node-zwave-js\node_modules\typescript\lib\typescript.js:46151:37)
    at Object.signatureToSignatureDeclaration (C:\Repositories\node-zwave-js\node_modules\typescript\lib\typescript.js:46107:28)
    at Rule.checkInferredTypeParameters (C:\Repositories\node-zwave-js\node_modules\@fimbul\mimir\src\rules\no-uninferred-type-parameter.js:129:44)
    at Rule.checkCallExpression (C:\Repositories\node-zwave-js\node_modules\@fimbul\mimir\src\rules\no-uninferred-type-parameter.js:93:29)
    at Rule.apply (C:\Repositories\node-zwave-js\node_modules\@fimbul\mimir\src\rules\no-uninferred-type-parameter.js:35:26)
    at Linter.applyRules (C:\Repositories\node-zwave-js\node_modules\@fimbul\wotan\src\linter.js:209:31)
    at Linter.getFindings (C:\Repositories\node-zwave-js\node_modules\@fimbul\wotan\src\linter.js:125:25)
    at Runner.lintProject (C:\Repositories\node-zwave-js\node_modules\@fimbul\wotan\src\runner.js:91:47)
```

4.1.0-dev.20200828:
```
Error: Debug Failure. Illegal value: 200
    at signatureToSignatureDeclarationHelper (C:\Repositories\node-zwave-js\node_modules\typescript\lib\typescript.js:46997:82)
    at C:\Repositories\node-zwave-js\node_modules\typescript\lib\typescript.js:46202:106
    at withContext (C:\Repositories\node-zwave-js\node_modules\typescript\lib\typescript.js:46246:37)
    at Object.signatureToSignatureDeclaration (C:\Repositories\node-zwave-js\node_modules\typescript\lib\typescript.js:46202:28)
    at Rule.checkInferredTypeParameters (C:\Repositories\node-zwave-js\node_modules\@fimbul\mimir\src\rules\no-uninferred-type-parameter.js:129:44)
    at Rule.checkCallExpression (C:\Repositories\node-zwave-js\node_modules\@fimbul\mimir\src\rules\no-uninferred-type-parameter.js:93:29)
    at Rule.apply (C:\Repositories\node-zwave-js\node_modules\@fimbul\mimir\src\rules\no-uninferred-type-parameter.js:35:26)
    at Linter.applyRules (C:\Repositories\node-zwave-js\node_modules\@fimbul\wotan\src\linter.js:209:31)
    at Linter.getFindings (C:\Repositories\node-zwave-js\node_modules\@fimbul\wotan\src\linter.js:125:25)
    at Runner.lintProject (C:\Repositories\node-zwave-js\node_modules\@fimbul\wotan\src\runner.js:91:47)
```

**Playground Link:** N/A

**Related Issues:** none