Fix compile error in TS

Without a type annotation, TS expects the argument in the ctor to be a never[], hence "npm test" fails to even start
This commit is contained in:
Tomas Novella authored and GitHub committed 2018-12-09 09:40:49 +01:00
1 parent 702220f151
commit 939afa9822
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ export class Item {
export class GildedRose {
items: Array<Item>;
constructor(items = []) {
constructor(items = [] as Array<Item>) {
this.items = items;
}