@hora/protocols

v0.1.0
Protocols symbols

@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/

npm i @hora/protocols

Metadata

  • MIT
  • >= 6.0.0
  • Paul Chavard
  • released 5/10/2017

Downloads

Maintainers