fix(types): Conform lib.deno_web.d.ts to lib.dom.d.ts and lib.webworker.d.ts#24599
Merged
bartlomieju merged 27 commits intodenoland:mainfrom Jul 22, 2024
Merged
fix(types): Conform lib.deno_web.d.ts to lib.dom.d.ts and lib.webworker.d.ts#24599bartlomieju merged 27 commits intodenoland:mainfrom
bartlomieju merged 27 commits intodenoland:mainfrom
Conversation
Contributor
|
Will this also fix? |
bartlomieju
reviewed
Jul 16, 2024
Member
bartlomieju
left a comment
There was a problem hiding this comment.
Thanks for working on this. Could you please add some tests like I did in #24489 to ensure we don't regress again?
537d04b to
1695f7a
Compare
Member
|
@petamoriken do you need any help with this PR? I'd like to land it before v1.45.3 release that will happen on Monday, July 22nd. |
Contributor
Author
|
@bartlomieju Finally, I am going to add type aliases for users who refer to old types. It shouldn't take that long. |
petamoriken
commented
Jul 22, 2024
Comment on lines
-610
to
-625
| /** @category Streams */ | ||
| declare interface ReadableStreamBYOBReadDoneResult<V extends ArrayBufferView> { | ||
| done: true; | ||
| value?: V; | ||
| } | ||
|
|
||
| /** @category Streams */ | ||
| declare interface ReadableStreamBYOBReadValueResult<V extends ArrayBufferView> { | ||
| done: false; | ||
| value: V; | ||
| } | ||
|
|
||
| /** @category Streams */ | ||
| declare type ReadableStreamBYOBReadResult<V extends ArrayBufferView> = | ||
| | ReadableStreamBYOBReadDoneResult<V> | ||
| | ReadableStreamBYOBReadValueResult<V>; |
Contributor
Author
There was a problem hiding this comment.
It can be reland when supported by upstream (microsoft/TypeScript-DOM-lib-generator#1676)
| extends GenericTransformStream, TextDecoderCommon { | ||
| readonly readable: ReadableStream<string>; | ||
| readonly writable: WritableStream<BufferSource>; | ||
| readonly [Symbol.toStringTag]: string; |
Contributor
Author
There was a problem hiding this comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #24578
Fix #21981