@mauna/reason-web-streams

0.1.10-development • Public • Published

@mauna/reason-web-streams

npm License: MIT

ReasonWebStreams is the Reason bindings for web-streams-polyfill.

Install

npm i @mauna/reason-web-streams

Add it to bsconfig.json

  "bs-dependencies": [
+   "@mauna/reason-web-streams",
  ]

You can now use the MaunaReasonWebStreams module.

Usage

open MaunaReasonWebStreams

let underlyingSource: ReadableStream.underlyingSource('a) = {
  start: None,
  pull: None,
  cancel: None,
  type_: None,
};

let strategy: ReadableStream.queuingStrategy('a) = {
  highWaterMark: None,
  size: None,
};

let readable =
  ReadableStream.make(~underlyingSource, ~strategy=Some(strategy), ());

Readme

Keywords

Package Sidebar

Install

npm i @mauna/reason-web-streams

Weekly Downloads

3

Version

0.1.10-development

License

MIT

Unpacked Size

42.8 kB

Total Files

20

Last publish

Collaborators

  • philip_mauna
  • whiterabbit1983
  • diwank