Преглед изворни кода

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: {