-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefs.ts
37 lines (31 loc) · 844 Bytes
/
defs.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
35
36
37
import {Observable, Subscription} from '@reactivex/rxjs';
export interface IMetaConfig {
gid?: string | number;
external?: string;
}
export interface INodeDef {
name: string;
type?: string;
config?: any;
metaConfig?: IMetaConfig;
dataFrom?: number[] | number; // Only on non-source nodes
id: number;
}
export interface ISourceNode {
(config?): Observable<any>;
}
export interface ITransfNode {
(iO: Observable<any>): Observable<any>;
(config: Object, iO: Observable<any>): Observable<any>;
}
export interface ISinkNode {
(iO: Observable<any>): Subscription<any>;
(config: Object, iO: Observable<any>): Subscription<any>;
}
export interface ICoupler {
config?: any;
defaultName: string;
getClient?(): any;
from(name: string): Observable<any>;
to(name: string, iO: Observable<any>): Subscription<any>;
}