docs: Fix js doc's param mismatch for setSizeConstraints (#10342)

This commit is contained in:
Tony 2024-07-22 17:09:36 +08:00 committed by GitHub
parent 8b3e6eccf4
commit f153e8b0fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1326,7 +1326,7 @@ class Window {
* await getCurrentWindow().setSizeConstraints({ minWidth: 300 });
* ```
*
* @param size The logical or physical inner size, or `null` to unset the constraint.
* @param constraints The logical or physical inner size, or `null` to unset the constraint.
* @returns A promise indicating the success or failure of the operation.
*/
async setSizeConstraints(