Skip to content

Commit e0863b8

Browse files
committed
Autogenerate ./types
1 parent a41474e commit e0863b8

5 files changed

Lines changed: 6 additions & 3 deletions

File tree

types/gui/install-dialogs.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export declare class ModInstallDialogs {
55
static showAutoUpdateDialog(): void;
66
static showModUninstallDialog(localMod: ModEntryLocal): boolean;
77
static checkCanDisableMod(mod: ModEntryLocal): boolean;
8-
static checkCanEnableMod(mod: ModEntryLocal): Promise<ModEntryLocal[] | undefined>;
8+
static checkCanEnableMod(mod: ModEntryLocal, callback: (deps: ModEntryLocal[] | undefined) => void): void;
99
}

types/gui/list-entry.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ declare global {
2626
ninepatch: ig.NinePatch;
2727
};
2828
iconGui: ig.ImageGui;
29+
addObservers(this: this): void;
30+
removeObservers(this: this): void;
2931
updateIcon(this: this, config: ModImageConfig): void;
3032
tryDisableMod(this: this, mod: ModEntryLocal): string | undefined;
3133
tryEnableMod(this: this, mod: ModEntryLocal): string | undefined;

types/gui/list.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ declare global {
4343
};
4444
}
4545
}
46-
export declare const modMenuListWidth = 552;

types/gui/menu.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ declare global {
4848
setBlackBarVisibility(this: this, visible: boolean): void;
4949
setAllVisibility(this: this, visible: boolean): void;
5050
updateInstallButtonText(this: this): void;
51-
onBackButtonPress(this: this): void;
5251
setTabEvent(this: this): void;
5352
showModInstallDialog(this: this): void;
5453
getCurrentlyFocusedModEntry(this: this): modmanager.gui.ListEntry | undefined;

types/gui/options/mod-options-menu.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { ModEntry } from '../../types';
22
import { ModOptionsSettings } from '../../mod-options';
33
declare global {
4+
namespace modmanager {
5+
function openModOptionsMenu(modId: string): void;
6+
}
47
namespace modmanager.gui {
58
interface OptionsMenu extends sc.BaseMenu, sc.Model.Observer {
69
mod: ModEntry;

0 commit comments

Comments
 (0)