support date display type (Gregorian and Buddhist)

This commit is contained in:
MaysWind
2025-08-27 00:58:22 +08:00
parent 23ffdbb163
commit c099443783
32 changed files with 776 additions and 126 deletions
+4
View File
@@ -156,6 +156,10 @@ export function isObjectEmpty(obj: object): boolean {
return true;
}
export function ofObject<T>(object: T): T {
return object;
}
export function getNumberValue(value: unknown, defaultValue: number): number {
if (isString(value)) {
return parseInt(value, 10);