koishi-plugin-common
Advanced tools
Comparing version 4.3.4 to 4.3.5
@@ -1,2 +0,3 @@ | ||
import { Context, Session, User, Channel, Argv, Extend } from 'koishi-core'; | ||
import { Context, Session, Awaitable, User, Channel, Argv, Extend } from 'koishi-core'; | ||
import { Awaitable } from 'koishi-utils'; | ||
export function broadcast(ctx: Context): void; | ||
@@ -51,3 +52,3 @@ export function contextify(ctx: Context): void; | ||
export function repeater(ctx: Context, config?: RepeaterConfig): void; | ||
type RequestHandler = string | boolean | ((session: Session) => string | boolean | void | Promise<string | boolean | void>); | ||
type RequestHandler = string | boolean | ((session: Session) => Awaitable<string | boolean | void>); | ||
export interface VerifierConfig { | ||
@@ -63,3 +64,3 @@ onFriendRequest?: RequestHandler; | ||
target: T; | ||
}, ...args: A) => void | string | Promise<void | string>; | ||
}, ...args: A) => Awaitable<void | string>; | ||
declare module 'koishi-core' { | ||
@@ -66,0 +67,0 @@ interface Command<U, G, A, O> { |
{ | ||
"name": "koishi-plugin-common", | ||
"description": "Common plugins for Koishi", | ||
"version": "4.3.4", | ||
"version": "4.3.5", | ||
"main": "lib/index.js", | ||
@@ -33,8 +33,8 @@ "typings": "lib/index.d.ts", | ||
"peerDependencies": { | ||
"koishi-core": "^3.14.1", | ||
"koishi-utils": "^4.2.4" | ||
"koishi-core": "^3.14.2", | ||
"koishi-utils": "^4.3.0" | ||
}, | ||
"devDependencies": { | ||
"koishi-test-utils": "^7.0.1" | ||
"koishi-test-utils": "^7.0.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
859
87174