Switch ts and babel for swc-loader

Replace old <> assertion syntax
This commit is contained in:
David Edmondson
2021-09-04 16:57:49 -07:00
parent 05bab22807
commit cfbdae6def
12 changed files with 1085 additions and 902 deletions
+2 -2
View File
@@ -113,12 +113,12 @@ export abstract class Person {
*/
applyAugmentation(aug: Augmentation): void {
for (const mult in aug.mults) {
if ((<any>this)[mult] == null) {
if ((this as any)[mult] == null) {
console.warn(
`Augmentation has unrecognized multiplier property: ${mult}`,
);
} else {
(<any>this)[mult] *= aug.mults[mult];
(this as any)[mult] *= aug.mults[mult];
}
}
}