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

fix(api): wrong window.setIcon argument type (#1591)

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

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

@@ -463,7 +463,7 @@ export class WindowManager {
    * @param icon Icon bytes or path to the icon file
    * @returns
    */
-  async setIcon(icon: 'string' | number[]): Promise<void> {
+  async setIcon(icon: string | number[]): Promise<void> {
     return invokeTauriCommand({
       __tauriModule: 'Window',
       message: {