Skip to content

Commit 4876fbf

Browse files
committed
Add workaround for TypeScript BC-break in declaration files.
microsoft/TypeScript#30662
1 parent da3c157 commit 4876fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/language/node/NodeBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export abstract class NodeBase implements INode {
4141
* they can still be reclaimed automatically when the node is no longer
4242
* referenced.
4343
*/
44-
protected static readonly DiagnosticWeakMap = new WeakMap<NodeBase, ReadonlyArray<SyntaxDiagnostic>>();
44+
protected static readonly DiagnosticWeakMap: WeakMap<NodeBase, ReadonlyArray<SyntaxDiagnostic>> = new WeakMap();
4545

4646
/**
4747
* An empty diagnostic array.

0 commit comments

Comments
 (0)