/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v6.2.4
shared/engine/index.d.ts
28 строк
995 B
chrisnojima
Deprecate redux-saga (#25095)
08 июл 2022, 21:29
Не верифицирован
08 июл 2022, 21:29
27c660c
Код
Авторство
О чём код?
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 listenersAreReady(): 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}