feat: add base methods

This commit is contained in:
Bloomingg
2023-12-06 20:04:34 +08:00
parent 7033508803
commit 9d20806d51
15 changed files with 1810 additions and 578 deletions

View File

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