From f9539cd464a01386b210f347e84ea08d2411dae2 Mon Sep 17 00:00:00 2001 From: Andrew Morris Date: Fri, 27 May 2022 16:34:41 +1000 Subject: [PATCH] Fix typescript error in sample --- inputs/passing/binaryTree.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inputs/passing/binaryTree.ts b/inputs/passing/binaryTree.ts index 6e28cc3..3fc2c19 100644 --- a/inputs/passing/binaryTree.ts +++ b/inputs/passing/binaryTree.ts @@ -41,7 +41,7 @@ function BinaryTree() { } }, toArray: function() { - let res = []; + let res: number[] = []; if (this.data.left) { res = cat(res, this.data.left.toArray());