Преглед на файлове

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

Tony преди 1 година
родител
ревизия
f153e8b0fe
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tooling/api/src/window.ts

+ 1 - 1
tooling/api/src/window.ts

@@ -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(