Skip to content

Commit

Permalink
fix: remove warning of unhandled node kind 76
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Aug 30, 2021
1 parent ee25c53 commit 4379095
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ Configuration is in `Preferences` - `Settings` - `Extensions` - `Type Coverage`
If the result from the vscode plugin is different from the result from the CLI, maybe your project root directory's `tsconfig.json` is different from your CLI `tsconfig.json`
If the plugin does not work, you may see some workarounds:
+ <https://github.com/plantain-00/type-coverage/issues/86#issuecomment-907814000>
## FAQ
> Q: Does this count JavaScript files?
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,9 @@ const skippedNodeKinds = new Set([
ts.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken,
ts.SyntaxKind.AmpersandEqualsToken,
ts.SyntaxKind.BarEqualsToken,
ts.SyntaxKind.BarBarEqualsToken,
ts.SyntaxKind.AmpersandAmpersandEqualsToken,
ts.SyntaxKind.QuestionQuestionEqualsToken,
ts.SyntaxKind.CaretEqualsToken,
ts.SyntaxKind.PrivateIdentifier,
ts.SyntaxKind.BreakKeyword,
Expand Down

0 comments on commit 4379095

Please sign in to comment.