From d76c0c447f99773dd4d32224656947c015305c09 Mon Sep 17 00:00:00 2001 From: ningmengchongshui <916415899@qq.com> Date: Wed, 12 Jun 2024 09:47:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=84=E8=8C=83=E5=8C=96=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/icqq.ts | 2 ++ src/core/plugins/index.ts | 8 +++++++- src/global.d.ts | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/core/icqq.ts b/src/core/icqq.ts index ff982ce..9136785 100644 --- a/src/core/icqq.ts +++ b/src/core/icqq.ts @@ -1 +1,3 @@ export { segment } from 'icqq' +import { segment } from 'icqq' +export const Segment = segment diff --git a/src/core/plugins/index.ts b/src/core/plugins/index.ts index 465050d..642a681 100644 --- a/src/core/plugins/index.ts +++ b/src/core/plugins/index.ts @@ -6,7 +6,7 @@ const State = {} const SymbolTimeout = Symbol('Timeout') const SymbolResolve = Symbol('Resolve') -export class plugin { +export class Plugin { /** * @deprecated 已废弃 */ @@ -251,3 +251,9 @@ export class plugin { return Common.render(plugin, tpl, data, { ...cfg, e: this.e }) } } + + +/** + * @deprecated 已废弃 + */ +export const plugin = Plugin \ No newline at end of file diff --git a/src/global.d.ts b/src/global.d.ts index 8211ea7..44ce98a 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -63,12 +63,12 @@ declare global { */ var Bot: typeof Client.prototype /** - * import { segment } from 'yunzai/core' + * import { Segment } from 'yunzai/core' * @deprecated 不推荐使用,未来将废弃 */ var segment: typeof se /** - * import { plugin } from 'yunzai/core' + * import { Plugin } from 'yunzai/core' * @deprecated 不推荐使用,未来将废弃 */ var plugin: typeof p