fix: use constructor to pass config name
This commit is contained in:
1 parent
6d863ac29c
commit
436249597d
3 files changed
+11
-7
No files matched your search
@@ -1,11 +1,13 @@
|
||||
import { ConfigBase } from "@/common/utils/ConfigBase";
|
||||
import { LogLevel } from "@/common/utils/log";
|
||||
import napCatDefaultConfig from '@/core/external/napcat.json';
|
||||
import { NapCatCore } from '@/core';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
||||
export type NapCatConfig = typeof napCatDefaultConfig;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
||||
export class NapCatConfigLoader extends ConfigBase<NapCatConfig> {
|
||||
name = 'napcat';
|
||||
constructor(coreContext: NapCatCore, configPath: string) {
|
||||
super('napcat', coreContext, configPath);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user