@koishijs/core
Advanced tools
Comparing version 4.11.9 to 4.12.0
@@ -45,2 +45,8 @@ /// <reference types="node" /> | ||
} | ||
export interface Binding { | ||
aid: number; | ||
bid: number; | ||
pid: string; | ||
platform: string; | ||
} | ||
export interface Channel { | ||
@@ -65,2 +71,3 @@ id: string; | ||
user: User; | ||
binding: Binding; | ||
channel: Channel; | ||
@@ -72,6 +79,5 @@ } | ||
constructor(app: Context); | ||
getUser<T extends string, K extends User.Field>(platform: T, id: string, modifier?: Driver.Cursor<K>): Promise<Pick<User, K> & Record<T, string>>; | ||
getUser<T extends string, K extends User.Field>(platform: T, ids: string[], modifier?: Driver.Cursor<K>): Promise<Pick<User, K>[]>; | ||
setUser(platform: string, id: string, data: Update<User>): Promise<void>; | ||
createUser(platform: string, id: string, data: Partial<User>): Promise<User>; | ||
getUser<K extends User.Field>(platform: string, pid: string, modifier?: Driver.Cursor<K>): Promise<Pick<User, K>>; | ||
setUser(platform: string, pid: string, data: Update<User>): Promise<void>; | ||
createUser(platform: string, pid: string, data: Partial<User>): Promise<User>; | ||
getChannel<K extends Channel.Field>(platform: string, id: string, modifier?: Driver.Cursor<K>): Promise<Pick<Channel, K | 'id' | 'platform'>>; | ||
@@ -532,2 +538,4 @@ getChannel<K extends Channel.Field>(platform: string, ids: string[], modifier?: Driver.Cursor<K>): Promise<Pick<Channel, K>[]>; | ||
showWarning?: boolean; | ||
/** handle error */ | ||
handleError?: boolean | ((error: Error, argv: Argv) => Awaitable<void | Fragment>); | ||
/** depend on existing commands */ | ||
@@ -534,0 +542,0 @@ patch?: boolean; |
{ | ||
"name": "@koishijs/core", | ||
"description": "Core Features for Koishi", | ||
"version": "4.11.9", | ||
"version": "4.12.0", | ||
"main": "lib/index.cjs", | ||
@@ -34,3 +34,3 @@ "module": "lib/index.mjs", | ||
"@koishijs/utils": "^7.0.1", | ||
"@minatojs/core": "^2.2.2", | ||
"@minatojs/core": "^2.3.1", | ||
"@satorijs/core": "^2.2.1", | ||
@@ -37,0 +37,0 @@ "cordis": "^2.7.4", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
533777
5240
Updated@minatojs/core@^2.3.1