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

Function isReadableStream

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

Source from the content-addressed store, hash-verified

1101}
1102
1103const isReadableStream = (u: unknown): u is ReadableStream<Uint8Array> =>
1104 typeof ReadableStream !== "undefined" && u instanceof ReadableStream
1105
1106const isFormData = (u: unknown): u is FormData => typeof FormData !== "undefined" && u instanceof FormData
1107

Callers 2

rawBodyStreamFunction · 0.70
isBodyInitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected