@@ -2887,11 +2887,11 @@ interface FileSystemSyncAccessHandle {
2887
2887
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */
2888
2888
getSize ( ) : number ;
2889
2889
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */
2890
- read ( buffer : BufferSource , options ?: FileSystemReadWriteOptions ) : number ;
2890
+ read ( buffer : AllowSharedBufferSource , options ?: FileSystemReadWriteOptions ) : number ;
2891
2891
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */
2892
2892
truncate ( newSize : number ) : void ;
2893
2893
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */
2894
- write ( buffer : BufferSource , options ?: FileSystemReadWriteOptions ) : number ;
2894
+ write ( buffer : AllowSharedBufferSource , options ?: FileSystemReadWriteOptions ) : number ;
2895
2895
}
2896
2896
2897
2897
declare var FileSystemSyncAccessHandle : {
@@ -5365,7 +5365,7 @@ interface TextDecoder extends TextDecoderCommon {
5365
5365
*
5366
5366
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
5367
5367
*/
5368
- decode ( input ?: BufferSource , options ?: TextDecodeOptions ) : string ;
5368
+ decode ( input ?: AllowSharedBufferSource , options ?: TextDecodeOptions ) : string ;
5369
5369
}
5370
5370
5371
5371
declare var TextDecoder : {
@@ -9175,6 +9175,7 @@ declare function addEventListener(type: string, listener: EventListenerOrEventLi
9175
9175
declare function removeEventListener < K extends keyof DedicatedWorkerGlobalScopeEventMap > ( type : K , listener : ( this : DedicatedWorkerGlobalScope , ev : DedicatedWorkerGlobalScopeEventMap [ K ] ) => any , options ?: boolean | EventListenerOptions ) : void ;
9176
9176
declare function removeEventListener ( type : string , listener : EventListenerOrEventListenerObject , options ?: boolean | EventListenerOptions ) : void ;
9177
9177
type AlgorithmIdentifier = Algorithm | string ;
9178
+ type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView ;
9178
9179
type BigInteger = Uint8Array ;
9179
9180
type BinaryData = ArrayBuffer | ArrayBufferView ;
9180
9181
type BlobPart = BufferSource | Blob | string ;
0 commit comments