Revert "fix:coerce"

This reverts commit b190c21ef8.
This commit is contained in:
手瓜一十雪
2025-04-19 10:58:56 +08:00
parent 981e510963
commit b2bd48cf49
88 changed files with 276 additions and 277 deletions

View File

@@ -50,7 +50,6 @@ import {
import { OB11Message } from './types';
import { IOB11NetworkAdapter } from '@/onebot/network/adapter';
import { OB11HttpSSEServerAdapter } from './network/http-server-sse';
import { ZodType } from 'zod';
//OneBot实现类
export class NapCatOneBot11Adapter {
@@ -67,7 +66,7 @@ export class NapCatOneBot11Adapter {
constructor(core: NapCatCore, context: InstanceContext, pathWrapper: NapCatPathWrapper) {
this.core = core;
this.context = context;
this.configLoader = new OB11ConfigLoader(core, pathWrapper.configPath, OneBotConfigSchema as ZodType<OneBotConfig>);
this.configLoader = new OB11ConfigLoader(core, pathWrapper.configPath, OneBotConfigSchema);
this.apis = {
GroupApi: new OneBotGroupApi(this, core),
UserApi: new OneBotUserApi(this, core),