MCPcopy Create free account
hub / github.com/Effect-TS/effect / isReadableStream

Function isReadableStream

packages/effect/src/unstable/http/HttpClientRequest.ts:975–976  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

973}
974
975const isReadableStream = (u: unknown): u is ReadableStream<Uint8Array> =>
976 typeof ReadableStream !== "undefined" && u instanceof ReadableStream
977
978/**
979 * Converts an `HttpClientRequest` to a Web `Request`, failing with `UrlError` when the request URL is invalid.

Callers 1

toWebResultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected