webpack hot reload support

This commit is contained in:
undefined committed 2020-07-17 19:20:42 +08:00
1 parent d8e1a63f99
commit 0ee306d0cf
15 files changed
+89 -63

No files matched your search

+12 -1
View File
@@ -90,7 +90,18 @@ class RatingCalculator {
}
}
function calculate(users: any[]) {
interface RatingInputUser {
old: number,
uid: number,
rank: number,
}
interface RatingOutputUser {
new: number,
uid: number,
}
function calculate(users: RatingInputUser[]): RatingOutputUser[] {
const calculator = new RatingCalculator(users);
return calculator.calculate();
}