MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / checkIsolateArgs

Function checkIsolateArgs

isolate/src/index.ts:7–15  ·  view source on GitHub ↗
(dataflowComponent: Component<So, Si>, scope: any)

Source from the content-addressed store, hash-verified

5}
6
7function 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
17export interface IsolateableSource {
18 isolateSource(source: Partial<IsolateableSource>, scope: string): Partial<IsolateableSource>;

Callers 1

isolateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected