Skip to content

Commit

Permalink
test: fix tests of other packages
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Aug 23, 2021
1 parent ee7a9a6 commit e624d76
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions types/node/stream/consumers.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
// Reference required types from the default lib:
/// <reference lib="dom" />
// 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';
Expand Down

0 comments on commit e624d76

Please sign in to comment.