/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v6.0.2
shared/engine/index.d.ts
28 строк
991 B
chrisnojima
remove getstate from engine (#24980)
11 май 2022, 22:31
Не верифицирован
11 май 2022, 22:31
d249118
Код
Авторство
О чём код?
import type Session from './session' import type {RPCError} from '../util/errors' import type {IncomingCallMapType, CustomResponseIncomingCallMapType} from '../constants/types/rpc-all-gen' export type WaitingKey = string | Array<string> export declare class Engine { dispatchWaitingAction: (key: WaitingKey, waiting: boolean, err: RPCError | null) => void reset(): void rpc(): void sagasAreReady(): void registerCustomResponse(s: string): void createSession(arg0: { incomingCallMap?: IncomingCallMapType waitingKey?: WaitingKey cancelHandler?: any dangling?: boolean }): Session _rpcOutgoing(arg0: { method: string params?: Object | null | undefined | void callback: (...args: Array<any>) => void waitingKey?: WaitingKey }): void } export declare function getEngine(): Engine export declare function makeEngine(dispatch: (a: any) => any): Engine export default getEngine export type {IncomingCallMapType, CustomResponseIncomingCallMapType}