fix(dts): specify the underlying buffer type in more places (#30640)

This commit is contained in:
ud2 2025-09-08 21:05:09 +08:00 committed by GitHub
parent e02e4c2042
commit a3a904da14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 35 additions and 28 deletions

View file

@ -450,7 +450,10 @@ interface DOMStringList {
}
/** @category Platform */
type BufferSource = ArrayBufferView | ArrayBuffer;
type BufferSource = ArrayBufferView<ArrayBuffer> | ArrayBuffer;
/** @category Platform */
type AllowSharedBufferSource = ArrayBufferView | ArrayBufferLike;
/**
* A global console object that provides methods for logging, debugging, and error reporting.