Skip to content

mauna-ai/reason-web-streams

Repository files navigation

@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), ());

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages