加入插件及调用上下文 #1
@@ -21,11 +21,14 @@ export interface CallOutgoingCtx extends CallOutgoingBeforeCtx {
|
||||
}
|
||||
|
||||
export interface CallIncomingBeforeCtx extends BaseHookCtx {
|
||||
|
||||
session: RPCSession;
|
||||
request: unknown;
|
||||
setRequest: (req: unknown) => void;
|
||||
}
|
||||
|
||||
export interface CallIncomingCtx extends CallIncomingBeforeCtx {
|
||||
|
||||
response: unknown;
|
||||
setResponse: (res: unknown) => void;
|
||||
}
|
||||
|
||||
export type NormalMethodReturn = Promise<void> | void;
|
||||
|
||||
Reference in New Issue
Block a user