canjs / can-stream

Stream values into and out of computes
https://canjs.com/doc/can-stream.html
MIT License
2 stars 1 forks source link

Set the default return to be the toStream function #3

Closed Sinjhin closed 7 years ago

Sinjhin commented 7 years ago

Exporting the toStream function as default so can-stream can be used as such:

var canStream = require('can-stream');
var compute = require('can-compute');
var someCompute = compute(0);
var streamImplementation = {};
var streamInterface = canStream(streamImplemenation);
streamInterface(someCompute);