mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +00:00
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:
parent
702220f151
commit
939afa9822
@ -13,7 +13,7 @@ export class Item {
|
|||||||
export class GildedRose {
|
export class GildedRose {
|
||||||
items: Array<Item>;
|
items: Array<Item>;
|
||||||
|
|
||||||
constructor(items = []) {
|
constructor(items = [] as Array<Item>) {
|
||||||
this.items = items;
|
this.items = items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user