-
Notifications
You must be signed in to change notification settings - Fork 4
/
rx-typings.d.ts
34 lines (29 loc) · 1.06 KB
/
rx-typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { TcombUpdate, TcombUpdatesState, Token } from './lib'
import { Observable, IDisposable } from 'rx'
import { ComponentSinks, ComponentSources } from './lib/plugins'
declare module './lib' {
interface DriverExecution extends IDisposable {
token: Token
updates: Observable<TcombUpdatesState>
responses: Observable<any>
events (eventName: string): Observable<TcombUpdate>
}
}
declare module './lib/plugins' {
interface PluginsExecution {
matchWith (this: Observable<TcombUpdate>,
plugins: Plugin[],
sources: ComponentSources,
{dupe}?: {dupe?: boolean}): Observable<ComponentSinks>
matchStream (sourceObservable: Observable<TcombUpdate>,
...args: any[]): Observable<ComponentSinks>
}
interface matchWith {
(this: Observable<TcombUpdate>,
plugins: Plugin[],
sources: ComponentSources,
{dupe}?: {dupe?: boolean}): Observable<ComponentSinks> }
interface matchStream {
(sourceObservable: Observable<TcombUpdate>,
...args: any[]): Observable<ComponentSinks> }
}