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

Function isReadableStream

packages/effect/src/unstable/http/HttpServerRequest.ts:998–999  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

996}
997
998const isReadableStream = (u: unknown): u is ReadableStream<Uint8Array> =>
999 typeof ReadableStream !== "undefined" && u instanceof ReadableStream
1000
1001const isFormData = (u: unknown): u is FormData => typeof FormData !== "undefined" && u instanceof FormData
1002

Callers 2

rawBodyStreamFunction · 0.70
isBodyInitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected