Skip to content

Commit 4f15a3c

Browse files
committed
Use ts.getCheckFlags to fix TS 5.0
1 parent 2c1ffc5 commit 4f15a3c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

apps/api-extractor/src/analyzer/TypeScriptInternals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class TypeScriptInternals {
4848
if (
4949
// eslint-disable-next-line no-bitwise
5050
symbol.flags & ts.SymbolFlags.Transient &&
51-
(symbol as any).checkFlags === (ts as any).CheckFlags.Late
51+
(ts as any).getCheckFlags(symbol) === (ts as any).CheckFlags.Late
5252
) {
5353
return true;
5454
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/api-extractor",
5+
"comment": "Use ts.getCheckFlags to fix TS 5.0",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@microsoft/api-extractor"
10+
}

0 commit comments

Comments
 (0)