@hora/protocols
v0.1.0
Published
Protocols symbols
Downloads
3
Readme
@hora/protocols
Install
$ yarn add @hora/protocols
Usage
import {
isTransducer,
ITERATOR,
TRANSDUCER_INIT,
TRANSDUCER_RESULT,
TRANSDUCER_STEP,
TYPEOF
} from '@hora/protocols';
class Collection {
[TRANSDUCER_INIT]() {}
[TRANSDUCER_RESULT](result) {}
[TRANSDUCER_STEP](result, input) {}
[ITERATOR]() {}
[TYPEOF]() {
return 'collection';
}
}
For more in depth documentation see: http://hora.io/docs/protocols/