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

Function isolateSource

dom/src/isolate.ts:5–7  ·  view source on GitHub ↗
(source: S, scope: string)

Source from the content-addressed store, hash-verified

3import {DOMSource} from './DOMSource';
4
5export function isolateSource<S extends DOMSource>(source: S, scope: string): S {
6 return source.select<S>(SCOPE_PREFIX + scope);
7}
8
9export interface Mappable<T> {
10 map<R>(mapFn: (x: T) => R): Mappable<R>;

Callers 4

appFunction · 0.50
MonalisaFunction · 0.50
isolation.tsFile · 0.50
IsolatedAppFunction · 0.50

Calls 1

selectMethod · 0.65

Tested by

no test coverage detected