feat: 规范化导出命名

This commit is contained in:
ningmengchongshui 2024-06-12 09:47:21 +08:00
parent 60ac6e3479
commit d76c0c447f
3 changed files with 11 additions and 3 deletions

View File

@ -1 +1,3 @@
export { segment } from 'icqq'
import { segment } from 'icqq'
export const Segment = segment

View File

@ -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

4
src/global.d.ts vendored
View File

@ -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