mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(api): wrong window.setIcon argument type (#1591)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user