code refactor

This commit is contained in:
MaysWind
2025-01-12 13:15:10 +08:00
parent f2ebd751d4
commit 6a62cfdef7
9 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -64,11 +64,11 @@ export class CurrencyDisplayType implements TypeAndName {
return CurrencyDisplayType.allInstances;
}
public static valueOf(type: number): CurrencyDisplayType {
public static valueOf(type: number): CurrencyDisplayType | undefined {
return CurrencyDisplayType.allInstancesByType[type];
}
public static parse(typeName: string): CurrencyDisplayType {
public static parse(typeName: string): CurrencyDisplayType | undefined {
return CurrencyDisplayType.allInstancesByTypeName[typeName];
}
}