mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-12 23:18:03 -05:00
Fix typescript error in sample
This commit is contained in:
@@ -41,7 +41,7 @@ function BinaryTree() {
|
||||
}
|
||||
},
|
||||
toArray: function() {
|
||||
let res = [];
|
||||
let res: number[] = [];
|
||||
|
||||
if (this.data.left) {
|
||||
res = cat(res, this.data.left.toArray());
|
||||
|
||||
Reference in New Issue
Block a user