Skip to content

Commit

Permalink
Update Streams to spec version 46c3b89 (#669)
Browse files Browse the repository at this point in the history
* Add AbortSignal to PipeOptions

Spec change: whatwg/streams@46c3b89

* Un-expose ReadableStreamBYOBReader constructor
  • Loading branch information
MattiasBuelens authored and sandersn committed Apr 3, 2019
1 parent 00449c6 commit 5831c2d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
6 changes: 1 addition & 5 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,7 @@ interface PipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
preventClose?: boolean;
signal?: AbortSignal;
}

interface PointerEventInit extends MouseEventInit {
Expand Down Expand Up @@ -12196,11 +12197,6 @@ interface ReadableStreamBYOBReader {
releaseLock(): void;
}

declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader;
};

interface ReadableStreamBYOBRequest {
readonly view: ArrayBufferView;
respond(bytesWritten: number): void;
Expand Down
6 changes: 1 addition & 5 deletions baselines/webworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ interface PipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
preventClose?: boolean;
signal?: AbortSignal;
}

interface ProgressEventInit extends EventInit {
Expand Down Expand Up @@ -2503,11 +2504,6 @@ interface ReadableStreamBYOBReader {
releaseLock(): void;
}

declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader;
};

interface ReadableStreamBYOBRequest {
readonly view: ArrayBufferView;
respond(bytesWritten: number): void;
Expand Down
1 change: 1 addition & 0 deletions inputfiles/idl/Streams.widl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ dictionary PipeOptions {
boolean? preventClose;
boolean? preventAbort;
boolean? preventCancel;
AbortSignal? signal;
};

[Exposed=(Window,Worker)]
Expand Down
11 changes: 5 additions & 6 deletions inputfiles/overridingTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2525,11 +2525,6 @@
"no-interface-object": "1"
},
"ReadableStreamBYOBReader": {
"constructor": {
"override-signatures": [
"new(stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader"
]
},
"methods": {
"method": {
"read": {
Expand All @@ -2538,7 +2533,8 @@
]
}
}
}
},
"no-interface-object": 1
},
"ReadableStreamBYOBRequest": {
"no-interface-object": 1
Expand Down Expand Up @@ -2929,6 +2925,9 @@
},
"preventCancel": {
"nullable": 0
},
"signal": {
"nullable": 0
}
}
}
Expand Down

0 comments on commit 5831c2d

Please sign in to comment.