Skip to content

Commit

Permalink
Use ts.getCheckFlags to fix TS 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jan 16, 2023
1 parent 2c1ffc5 commit 4f15a3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api-extractor/src/analyzer/TypeScriptInternals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class TypeScriptInternals {
if (
// eslint-disable-next-line no-bitwise
symbol.flags & ts.SymbolFlags.Transient &&
(symbol as any).checkFlags === (ts as any).CheckFlags.Late
(ts as any).getCheckFlags(symbol) === (ts as any).CheckFlags.Late
) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/api-extractor",
"comment": "Use ts.getCheckFlags to fix TS 5.0",
"type": "patch"
}
],
"packageName": "@microsoft/api-extractor"
}

0 comments on commit 4f15a3c

Please sign in to comment.