Convert all remaining files to typescript.
This commit is contained in:
@@ -16,16 +16,12 @@ const Shortcuts = () => {
|
||||
},
|
||||
],
|
||||
});
|
||||
const handleClick = (action, resolver, tOut = 250) => {
|
||||
const handleClick = (action: any, tOut: number = 250) => {
|
||||
App.closeWindow("dashboardmenu");
|
||||
|
||||
setTimeout(() => {
|
||||
Utils.execAsync(action)
|
||||
.then((res) => {
|
||||
if (typeof resolver === "function") {
|
||||
return resolver(res);
|
||||
}
|
||||
|
||||
return res;
|
||||
})
|
||||
.catch((err) => err);
|
||||
Reference in New Issue
Block a user