mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
fix & refactor: no longer merge config data and loader; use static imports to represent config struct
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
import { ConfigBase } from "@/common/utils/ConfigBase";
|
||||
import { LogLevel } from "@/common/utils/log";
|
||||
import napCatDefaultConfig from '@/core/external/napcat.json';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
||||
export interface NapCatConfig {
|
||||
fileLog: boolean,
|
||||
consoleLog: boolean,
|
||||
fileLogLevel: LogLevel,
|
||||
consoleLogLevel: LogLevel,
|
||||
}
|
||||
export type NapCatConfig = typeof napCatDefaultConfig;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
||||
export class NapCatConfig extends ConfigBase<NapCatConfig> {
|
||||
export class NapCatConfigLoader extends ConfigBase<NapCatConfig> {
|
||||
name = 'napcat';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user