Sha256: 806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0

Contents?: true

Size: 1.17 KB

Versions: 6

Compression:

Stored size: 1.17 KB

Contents

// Duplicates of interface in lib.dom.ts.
// Duplicated here rather than referencing lib.dom.ts because doing so causes lib.dom.ts to be loaded for "test-all"
// Which in turn causes tests to pass that shouldn't pass.
//
// This interface is not, and should not be, exported.
interface Blob {
    readonly size: number;
    readonly type: string;
    arrayBuffer(): Promise<ArrayBuffer>;
    slice(start?: number, end?: number, contentType?: string): Blob;
    stream(): NodeJS.ReadableStream;
    text(): Promise<string>;
}
declare module 'stream/consumers' {
    import { Readable } from 'node:stream';
    function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<Buffer>;
    function text(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<string>;
    function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<ArrayBuffer>;
    function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<Blob>;
    function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<unknown>;
}
declare module 'node:stream/consumers' {
    export * from 'stream/consumers';
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
isomorfeus-puppetmaster-0.5.5 node_modules/@types/node/stream/consumers.d.ts
isomorfeus-puppetmaster-0.5.4 node_modules/@types/node/stream/consumers.d.ts
isomorfeus-puppetmaster-0.5.3 node_modules/@types/node/stream/consumers.d.ts
isomorfeus-puppetmaster-0.5.2 node_modules/@types/node/stream/consumers.d.ts
isomorfeus-puppetmaster-0.5.1 node_modules/@types/node/stream/consumers.d.ts
isomorfeus-puppetmaster-0.5.0 node_modules/@types/node/stream/consumers.d.ts