0.1.0 • Published 7 years ago

@hora/protocols v0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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