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

This commit is contained in:
Pablo Singer
2021-04-23 02:39:18 +02:00
committed by GitHub
parent 5e65b768e5
commit ae156e77e0

View File

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