fix(lib.d.ts): fixed buffer parameter type of DataView#53130
fix(lib.d.ts): fixed buffer parameter type of DataView#53130sandersn merged 3 commits intomicrosoft:mainfrom
DataView#53130Conversation
|
It looks like you've sent a pull request to update our 'lib' files. These files aren't meant to be edited by hand, as they consist of last-known good states of the compiler and are generated from 'src/lib' or possibly our lib generator. Unless this is necessary, consider closing the pull request and sending a separate PR to update 'src/lib' or https://github.com/microsoft/TypeScript-DOM-lib-generator |
@microsoft-github-policy-service agree |
sandersn
left a comment
There was a problem hiding this comment.
Looks good. I'll merge this after it's merged up-to-date with main.
|
Addresses #52956 |
|
This broke This looks like exactly the case mentioned in the description, though, so I guess this test should just be changed? |
The DataView constructor parameter type is incorrectly broad by accepting ArrayBufferLike because TypedArray's such as Uint8Array match the ArrayBufferLike type but are not valid parameters.
Backlogmilestone (required)mainbranchhereby runtestslocallyFixes #52815