feat: add base methods
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { CbEvents } from '@/constant/callback';
|
||||
import {
|
||||
GroupType,
|
||||
ApplicationHandleResult,
|
||||
@@ -16,6 +17,8 @@ import {
|
||||
OnlineState,
|
||||
} from './enum';
|
||||
|
||||
export type EmitProxy = (event: CbEvents, ...args: any[]) => void;
|
||||
|
||||
export type BaseCallbackWrap = <T>(
|
||||
resolve: (response: BaseResponse<T>) => void,
|
||||
reject: (response: BaseResponse<T>) => void
|
||||
|
||||
Reference in New Issue
Block a user