@hora/protocols

0.1.0 • Public • Published

@hora/protocols

Build Status npm version

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/

Readme

Keywords

none

Package Sidebar

Install

npm i @hora/protocols

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • tchak