/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v6.2.3
shared/engine/session.d.ts
51 строка
2 KB
chrisnojima
remove getstate from engine (#24980)
11 май 2022, 22:31
Не верифицирован
11 май 2022, 22:31
d249118
Код
Авторство
О чём код?
import type { CustomResponseIncomingCallMap as KBCustomResponseIncomingCallMap, IncomingCallMapType as KBIncomingCallMap, } from '../constants/types/rpc-gen' import type { CustomResponseIncomingCallMap as ChatCustomResponseIncomingCallMap, IncomingCallMapType as ChatIncomingCallMap, } from '../constants/types/rpc-chat-gen' import type { CustomResponseIncomingCallMap as GregorCustomResponseIncomingCallMap, IncomingCallMapType as GregorIncomingCallMap, } from '../constants/types/rpc-gregor-gen' import type { CustomResponseIncomingCallMap as SellarCustomResponseIncomingCallMap, IncomingCallMapType as SellarIncomingCallMap, } from '../constants/types/rpc-stellar-gen' type IncomingCallMap = {} & KBIncomingCallMap & ChatIncomingCallMap & GregorIncomingCallMap & SellarIncomingCallMap type CustomResponseIncomingCallMap = {} & KBCustomResponseIncomingCallMap & ChatCustomResponseIncomingCallMap & GregorCustomResponseIncomingCallMap & SellarCustomResponseIncomingCallMap declare class Session { id: number getId: () => number end: () => void getDangling: () => boolean hasSeqID: (seqID: number) => boolean _startMethod: string | null cancel: () => void incomingCall: (method: string, param: Object, response: Object | null) => boolean start: (method: string, param: Object | null, callback: null | (() => void)) => void constructor(arg0: { dispatch: any sessionID: number incomingCallMap?: IncomingCallMap | null customResponseIncomingCallMap?: CustomResponseIncomingCallMap | null waitingKey?: string | Array<string> invoke: (method: string, param: [Object] | null, cb: (err?: any, data?: any) => void) => void endHandler: (session: Session) => void cancelHandler?: (session: Session) => void dangling?: boolean }) } export default Session export type CancelHandlerType = (session: Session) => void