Add null annotations for x: T[] = null

This code pattern indicates that the type should be nullable
This commit is contained in:
Matt Bierner
2018-10-11 14:25:11 -07:00
parent 0318e90c93
commit 29d97683a1
19 changed files with 28 additions and 28 deletions

View File

@@ -122,7 +122,7 @@ class ExtHostTreeView<T> extends Disposable {
private static LABEL_HANDLE_PREFIX = '0';
private static ID_HANDLE_PREFIX = '1';
private roots: TreeNode[] = null;
private roots: TreeNode[] | null = null;
private elements: Map<TreeItemHandle, T> = new Map<TreeItemHandle, T>();
private nodes: Map<T, TreeNode> = new Map<T, TreeNode>();