Skip to content

Commit fd0b122

Browse files
Add small hack in type tests
1 parent 67073d0 commit fd0b122

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/types/writable-stream.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ const closePromise: Promise<void> = writableStream.close();
4040
const abortPromise: Promise<void> = writableStream.abort('aborted');
4141

4242
// Compatibility with stream types from DOM
43-
// FIXME Remove deprecated WritableStreamDefaultController.abortReason
43+
declare global {
44+
interface WritableStreamDefaultController {
45+
// FIXME Remove deprecated WritableStreamDefaultController.abortReason
46+
abortReason: any;
47+
}
48+
}
49+
4450
// const domUnderlyingSink: UnderlyingSink<string> = underlyingSink;
4551
const domWritableStream: WritableStream<string> = writableStream;
4652
// const domController: WritableStreamDefaultController = controller;

0 commit comments

Comments
 (0)