Skip to content

Commit

Permalink
fix(types): openDialog() could accept optional argument of string, …
Browse files Browse the repository at this point in the history
…null or `Settings` type (#349)
  • Loading branch information
nd0ut committed Sep 29, 2022
1 parent 64f8c12 commit 63938d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ interface Settings extends LocaleSettings {
}

interface WidgetAPI {
openDialog: (tab: string) => void;
openDialog: (tab?: string | null | Settings) => void;
reloadInfo: () => void;
getInput: () => HTMLInputElement;
value: (value?: null | string[] | JQuery.Deferred<FileInfo> | JQuery.Deferred<FileGroup>) => void;
Expand Down

0 comments on commit 63938d0

Please sign in to comment.