MCPcopy Create free account
hub / github.com/GetStream/stream-js / isReadableStream

Function isReadableStream

src/utils.ts:34–40  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

32}
33
34function isReadableStream(obj: unknown): obj is NodeJS.ReadStream {
35 return (
36 obj !== null &&
37 typeof obj === 'object' &&
38 ((obj as NodeJS.ReadStream).readable || typeof (obj as NodeJS.ReadStream)._read === 'function')
39 );
40}
41
42function isBuffer(obj: unknown): obj is Buffer {
43 return (

Callers 1

addFileToFormDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected