migrate setting.js and logger.js to ts

This commit is contained in:
MaysWind
2025-01-04 23:42:10 +08:00
parent a9e50d29d3
commit a46399cbaf
34 changed files with 375 additions and 361 deletions
@@ -406,7 +406,7 @@ import { TemplateType, ScheduledTemplateFrequencyType } from '@/core/template.ts
import { TRANSACTION_MAX_PICTURE_COUNT } from '@/consts/transaction.ts';
import { KnownErrorCode } from '@/consts/api.ts';
import { SUPPORTED_IMAGE_EXTENSIONS } from '@/consts/file.ts';
import logger from '@/lib/logger.js';
import logger from '@/lib/logger.ts';
import {
isArray,
getNameByKeyValue
@@ -616,7 +616,7 @@ import {
} from '@/lib/common.ts';
import { isFileExtensionSupported } from '@/lib/file.ts';
import { generateRandomUUID } from '@/lib/misc.ts';
import logger from '@/lib/logger.js';
import logger from '@/lib/logger.ts';
import {
parseDateFromUnixTime,
getUnixTime,