feat: add session and request handling to CallIncomingBeforeCtx and CallIncomingCtx interfaces

This commit is contained in:
2025-11-28 11:08:03 +08:00
parent ebb9ed21ad
commit 1b5281e0c1

View File

@@ -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;