Closed
Description
Please don't ignore this template.
There doesn't seem to be a template for "@typescript-eslint/types".
Checks
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Problem
The finalizer
property on the TryStatement
node type can be null
but the type says it can't be.
Expected Type
interface TryStatement extends BaseNode {
// ...
finalizer: BlockStatement | null;
}
Actual Type
interface TryStatement extends BaseNode {
// ...
finalizer: BlockStatement;
}
Versions
package | version |
---|---|
@typescript-eslint/type |
4.11.1 |
TypeScript |
4.1.3 |
node |
14.15.3 |