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