UNPKG

417 BTypeScriptView Raw
1import { Stream } from 'xstream';
2import { VNode } from 'snabbdom/vnode';
3export interface Scope {
4 type: 'sibling' | 'total' | 'selector';
5 scope: string;
6}
7export declare type IsolateSink<T extends VNode> = (s: Stream<T>, scope: string) => Stream<T>;
8export declare function makeIsolateSink<T extends VNode>(namespace: Array<Scope>): IsolateSink<T>;
9export declare function getScopeObj(scope: string): Scope;