feat: update CallOutgoingBeforeCtx and CallOutgoingCtx interfaces to use unknown type for options and result

This commit is contained in:
2025-11-27 22:30:21 +08:00
parent 809a3759d9
commit 500e7c8fa6

View File

@@ -11,15 +11,13 @@ export interface BaseHookCtx {
export interface CallOutgoingBeforeCtx extends BaseHookCtx {
session: RPCSession;
options: {
fnPath: string;
args: any[];
};
options: unknown;
setOptions: (opt: unknown) => void;
}
export interface CallOutgoingCtx extends CallOutgoingBeforeCtx {
result: any;
setResult: (data: any) => void;
result: unknown;
setResult: (res: unknown) => void;
}
export interface CallIncomingBeforeCtx extends BaseHookCtx {