feat: 规范化导出命名
This commit is contained in:
parent
60ac6e3479
commit
d76c0c447f
|
@ -1 +1,3 @@
|
|||
export { segment } from 'icqq'
|
||||
import { segment } from 'icqq'
|
||||
export const Segment = segment
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue