UNPKG

@motorcycle/test

Version:
13 lines 448 B
import { createProxy, until } from '@motorcycle/stream'; export function createProxySinks(sinks, endSignal) { return new Proxy(sinks, { get: function (target, property) { if (!target[property]) { var stream = createProxy().stream; target[property] = stream; } return until(endSignal, target[property]); }, }); } //# sourceMappingURL=createProxySinks.js.map