Skip to content

Commit

Permalink
feat: update exports in index.ts and add new ElementTypes in segment.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sj817 committed Jan 9, 2025
1 parent 2a1074a commit b023ed8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ export * from '@/service/logger'
import '@/service/init'
export * from '@/service/index'
export * from '@/core/karin/index'
export * from '@/utils/message'
export * from '@/utils'
export * from '@/server'
export { karin as default } from '@/core/karin/index'
export * from '@/packages/onebot'
export * from '@/event/create'

export * from '@/types/adapter'
export * from '@/types/config'
export * from '@/types/event'
export * from '@/types/plugin'
export * from '@/types/segment'
export * from '@/types/system'
export { karin as default } from '@/core/karin/index'
5 changes: 5 additions & 0 deletions src/types/segment/segment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,8 @@ export type Elements = TextElement
* 发送消息段类型
*/
export type SendMessage = string | Elements | Array<string | Elements>

/**
* 全部消息段元素
*/
export type ElementTypes = Elements

0 comments on commit b023ed8

Please sign in to comment.