UNPKG

@johngw/stream

Version:

Reactive programming tools using the WHATWG Streams API.

12 lines 309 B
/** * Creates a ReadableStream the queues `x` and closes. * * @group Sources * @example * ``` * await of({ foo: 'bar' }).pipeTo(write(x => console.info(x))) * // { foo: 'bar' } * ``` */ export declare function of<T>(x: T): import("node:stream/web").ReadableStream<T>; //# sourceMappingURL=of.d.ts.map