(dataflowComponent: Component<So, Si>, scope: any)
| 5 | } |
| 6 | |
| 7 | function checkIsolateArgs<So, Si>(dataflowComponent: Component<So, Si>, scope: any) { |
| 8 | if (typeof dataflowComponent !== `function`) { |
| 9 | throw new Error(`First argument given to isolate() must be a ` + |
| 10 | `'dataflowComponent' function`); |
| 11 | } |
| 12 | if (scope === null) { |
| 13 | throw new Error(`Second argument given to isolate() must not be null`); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | export interface IsolateableSource { |
| 18 | isolateSource(source: Partial<IsolateableSource>, scope: string): Partial<IsolateableSource>; |