加入插件及调用上下文 #1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user