소스 검색

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