@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250710155653 → 13.346.0-beta.20250711091813
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/foundry/client/applications/api/application.d.mts +23 -11
- package/src/foundry/client/applications/api/category-browser.d.mts +11 -2
- package/src/foundry/client/applications/api/dialog.d.mts +6 -2
- package/src/foundry/client/applications/api/document-sheet.d.mts +16 -9
- package/src/foundry/client/applications/apps/av/camera-popout.d.mts +14 -3
- package/src/foundry/client/applications/apps/av/cameras.d.mts +14 -3
- package/src/foundry/client/applications/apps/combat-tracker-config.d.mts +15 -3
- package/src/foundry/client/applications/apps/compendium-art-config.d.mts +12 -2
- package/src/foundry/client/applications/apps/file-picker.d.mts +11 -1
- package/src/foundry/client/applications/apps/image-popout.d.mts +11 -1
- package/src/foundry/client/applications/apps/permission-config.d.mts +12 -2
- package/src/foundry/client/applications/dice/roll-resolver.d.mts +14 -1
- package/src/foundry/client/applications/hud/container.d.mts +11 -2
- package/src/foundry/client/applications/hud/placeable-hud.d.mts +14 -2
- package/src/foundry/client/applications/settings/dependency-resolution.d.mts +17 -3
- package/src/foundry/client/applications/settings/menus/av-config.d.mts +12 -3
- package/src/foundry/client/applications/settings/menus/dice-config.d.mts +15 -3
- package/src/foundry/client/applications/settings/menus/font-config.d.mts +14 -2
- package/src/foundry/client/applications/settings/menus/prototype-overrides.d.mts +14 -3
- package/src/foundry/client/applications/settings/menus/ui-config.d.mts +15 -4
- package/src/foundry/client/applications/sheets/token/prototype-config.d.mts +17 -3
- package/src/foundry/client/applications/sidebar/apps/chat-popout.d.mts +12 -3
- package/src/foundry/client/applications/sidebar/apps/frame-viewer.d.mts +12 -3
- package/src/foundry/client/applications/sidebar/apps/invitation-links.d.mts +17 -3
- package/src/foundry/client/applications/sidebar/apps/module-management.d.mts +17 -3
- package/src/foundry/client/applications/sidebar/apps/support-details.d.mts +16 -3
- package/src/foundry/client/applications/sidebar/apps/world-config.d.mts +15 -3
- package/src/foundry/client/applications/sidebar/document-directory.d.mts +14 -2
- package/src/foundry/client/applications/sidebar/sidebar-tab.d.mts +14 -1
- package/src/foundry/client/applications/sidebar/sidebar.d.mts +11 -3
- package/src/foundry/client/applications/ui/game-pause.d.mts +12 -3
- package/src/foundry/client/applications/ui/hotbar.d.mts +15 -5
- package/src/foundry/client/applications/ui/main-menu.d.mts +13 -3
- package/src/foundry/client/applications/ui/players.d.mts +13 -3
- package/src/foundry/client/applications/ui/region-legend.d.mts +11 -2
- package/src/foundry/client/applications/ui/scene-controls.d.mts +15 -3
- package/src/foundry/client/applications/ui/scene-navigation.d.mts +12 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../../api/application.d.mts";
|
3
3
|
import type HandlebarsApplicationMixin from "../../api/handlebars-application.d.mts";
|
4
4
|
|
@@ -19,6 +19,9 @@ declare class FontConfig<
|
|
19
19
|
Configuration extends FontConfig.Configuration = FontConfig.Configuration,
|
20
20
|
RenderOptions extends FontConfig.RenderOptions = FontConfig.RenderOptions,
|
21
21
|
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
22
|
+
// Fake override.
|
23
|
+
static override DEFAULT_OPTIONS: FontConfig.DefaultOptions;
|
24
|
+
|
22
25
|
/** Font types */
|
23
26
|
static FONT_TYPES: Readonly<{
|
24
27
|
/** Font is a file */
|
@@ -34,7 +37,16 @@ declare namespace FontConfig {
|
|
34
37
|
interface AnyConstructor extends Identity<typeof AnyFontConfig> {}
|
35
38
|
|
36
39
|
interface RenderContext extends HandlebarsApplicationMixin.RenderContext, ApplicationV2.RenderContext {}
|
37
|
-
|
40
|
+
|
41
|
+
interface Configuration<FontConfig extends FontConfig.Any = FontConfig.Any>
|
42
|
+
extends HandlebarsApplicationMixin.Configuration,
|
43
|
+
ApplicationV2.Configuration<FontConfig> {}
|
44
|
+
|
45
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
46
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
47
|
+
type DefaultOptions<FontConfig extends FontConfig.Any = FontConfig.Any> = DeepPartial<Configuration<FontConfig>> &
|
48
|
+
object;
|
49
|
+
|
38
50
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
39
51
|
|
40
52
|
interface NewFontDefinition {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../../api/application.d.mts";
|
3
3
|
import type HandlebarsApplicationMixin from "../../api/handlebars-application.d.mts";
|
4
4
|
|
@@ -18,7 +18,10 @@ declare class PrototypeOverridesConfig<
|
|
18
18
|
RenderContext extends PrototypeOverridesConfig.RenderContext = PrototypeOverridesConfig.RenderContext,
|
19
19
|
Configuration extends PrototypeOverridesConfig.Configuration = PrototypeOverridesConfig.Configuration,
|
20
20
|
RenderOptions extends PrototypeOverridesConfig.RenderOptions = PrototypeOverridesConfig.RenderOptions,
|
21
|
-
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
21
|
+
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
22
|
+
// Fake override.
|
23
|
+
static override DEFAULT_OPTIONS: PrototypeOverridesConfig.DefaultOptions;
|
24
|
+
}
|
22
25
|
|
23
26
|
declare namespace PrototypeOverridesConfig {
|
24
27
|
interface Any extends AnyPrototypeOverridesConfig {}
|
@@ -32,7 +35,15 @@ declare namespace PrototypeOverridesConfig {
|
|
32
35
|
rootId: string;
|
33
36
|
}
|
34
37
|
|
35
|
-
interface Configuration extends
|
38
|
+
interface Configuration<PrototypeOverridesConfig extends PrototypeOverridesConfig.Any = PrototypeOverridesConfig.Any>
|
39
|
+
extends HandlebarsApplicationMixin.Configuration,
|
40
|
+
ApplicationV2.Configuration<PrototypeOverridesConfig> {}
|
41
|
+
|
42
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
43
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
44
|
+
type DefaultOptions<PrototypeOverridesConfig extends PrototypeOverridesConfig.Any = PrototypeOverridesConfig.Any> =
|
45
|
+
DeepPartial<Configuration<PrototypeOverridesConfig>> & object;
|
46
|
+
|
36
47
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
37
48
|
}
|
38
49
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../../api/application.d.mts";
|
3
3
|
import type HandlebarsApplicationMixin from "../../api/handlebars-application.d.mts";
|
4
4
|
|
@@ -16,16 +16,27 @@ declare module "#configuration" {
|
|
16
16
|
*/
|
17
17
|
declare class UIConfig<
|
18
18
|
RenderContext extends UIConfig.RenderContext = UIConfig.RenderContext,
|
19
|
-
Configuration extends UIConfig.Configuration =
|
19
|
+
Configuration extends UIConfig.Configuration = UIConfig.Configuration,
|
20
20
|
RenderOptions extends UIConfig.RenderOptions = UIConfig.RenderOptions,
|
21
|
-
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
21
|
+
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
22
|
+
// Fake override.
|
23
|
+
static override DEFAULT_OPTIONS: UIConfig.DefaultOptions;
|
24
|
+
}
|
22
25
|
|
23
26
|
declare namespace UIConfig {
|
24
27
|
interface Any extends AnyUIConfig {}
|
25
28
|
interface AnyConstructor extends Identity<typeof AnyUIConfig> {}
|
26
29
|
|
27
30
|
interface RenderContext extends HandlebarsApplicationMixin.RenderContext, ApplicationV2.RenderContext {}
|
28
|
-
|
31
|
+
|
32
|
+
interface Configuration<UIConfig extends UIConfig.Any = UIConfig.Any>
|
33
|
+
extends HandlebarsApplicationMixin.Configuration,
|
34
|
+
ApplicationV2.Configuration<UIConfig> {}
|
35
|
+
|
36
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
37
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
38
|
+
type DefaultOptions<UIConfig extends UIConfig.Any = UIConfig.Any> = DeepPartial<Configuration<UIConfig>> & object;
|
39
|
+
|
29
40
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
30
41
|
|
31
42
|
interface GameUIConfiguration {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { PrototypeToken } from "#common/data/data.mjs";
|
2
|
-
import type { Identity } from "#utils";
|
2
|
+
import type { DeepPartial, Identity } from "#utils";
|
3
3
|
import type ApplicationV2 from "../../api/application.d.mts";
|
4
4
|
import type TokenApplicationMixin from "./mixin.d.mts";
|
5
5
|
|
@@ -19,14 +19,28 @@ declare class PrototypeTokenConfig<
|
|
19
19
|
RenderContext extends PrototypeTokenConfig.RenderContext = PrototypeTokenConfig.RenderContext,
|
20
20
|
Configuration extends PrototypeTokenConfig.Configuration = PrototypeTokenConfig.Configuration,
|
21
21
|
RenderOptions extends PrototypeTokenConfig.RenderOptions = PrototypeTokenConfig.RenderOptions,
|
22
|
-
> extends TokenApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
22
|
+
> extends TokenApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
23
|
+
// Fake override.
|
24
|
+
static override DEFAULT_OPTIONS: PrototypeTokenConfig.DefaultOptions;
|
25
|
+
}
|
23
26
|
|
24
27
|
declare namespace PrototypeTokenConfig {
|
25
28
|
interface Any extends AnyPrototypeTokenConfig {}
|
26
29
|
interface AnyConstructor extends Identity<typeof AnyPrototypeTokenConfig> {}
|
27
30
|
|
28
31
|
interface RenderContext extends TokenApplicationMixin.RenderContext<PrototypeToken>, ApplicationV2.RenderContext {}
|
29
|
-
|
32
|
+
|
33
|
+
interface Configuration<PrototypeTokenConfig extends PrototypeTokenConfig.Any = PrototypeTokenConfig.Any>
|
34
|
+
extends TokenApplicationMixin.Configuration,
|
35
|
+
ApplicationV2.Configuration<PrototypeTokenConfig> {}
|
36
|
+
|
37
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
38
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
39
|
+
type DefaultOptions<PrototypeTokenConfig extends PrototypeTokenConfig.Any = PrototypeTokenConfig.Any> = DeepPartial<
|
40
|
+
Configuration<PrototypeTokenConfig>
|
41
|
+
> &
|
42
|
+
object;
|
43
|
+
|
30
44
|
interface RenderOptions extends TokenApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
31
45
|
}
|
32
46
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../../api/application.mjs";
|
3
3
|
|
4
4
|
declare module "#configuration" {
|
@@ -17,7 +17,10 @@ declare class ChatPopout<
|
|
17
17
|
RenderContext extends ChatPopout.RenderContext = ChatPopout.RenderContext,
|
18
18
|
Configuration extends ChatPopout.Configuration = ChatPopout.Configuration,
|
19
19
|
RenderOptions extends ChatPopout.RenderOptions = ChatPopout.RenderOptions,
|
20
|
-
> extends ApplicationV2<RenderContext, Configuration, RenderOptions> {
|
20
|
+
> extends ApplicationV2<RenderContext, Configuration, RenderOptions> {
|
21
|
+
// Fake override.
|
22
|
+
static override DEFAULT_OPTIONS: ChatPopout.DefaultOptions;
|
23
|
+
}
|
21
24
|
|
22
25
|
declare namespace ChatPopout {
|
23
26
|
interface Any extends AnyChatPopout {}
|
@@ -25,11 +28,17 @@ declare namespace ChatPopout {
|
|
25
28
|
|
26
29
|
interface RenderContext extends ApplicationV2.RenderContext {}
|
27
30
|
|
28
|
-
interface Configuration extends
|
31
|
+
interface Configuration<ChatPopout extends ChatPopout.Any = ChatPopout.Any>
|
32
|
+
extends ApplicationV2.Configuration<ChatPopout> {
|
29
33
|
/** The message being rendered. */
|
30
34
|
message: ChatMessage.Implementation;
|
31
35
|
}
|
32
36
|
|
37
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
38
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
39
|
+
type DefaultOptions<ChatPopout extends ChatPopout.Any = ChatPopout.Any> = DeepPartial<Configuration<ChatPopout>> &
|
40
|
+
object;
|
41
|
+
|
33
42
|
interface RenderOptions extends ApplicationV2.RenderOptions {}
|
34
43
|
}
|
35
44
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../../api/application.mjs";
|
3
3
|
|
4
4
|
declare module "#configuration" {
|
@@ -17,7 +17,10 @@ declare class FrameViewer<
|
|
17
17
|
RenderContext extends FrameViewer.RenderContext = FrameViewer.RenderContext,
|
18
18
|
Configuration extends FrameViewer.Configuration = FrameViewer.Configuration,
|
19
19
|
RenderOptions extends FrameViewer.RenderOptions = FrameViewer.RenderOptions,
|
20
|
-
> extends ApplicationV2<RenderContext, Configuration, RenderOptions> {
|
20
|
+
> extends ApplicationV2<RenderContext, Configuration, RenderOptions> {
|
21
|
+
// Fake override.
|
22
|
+
static override DEFAULT_OPTIONS: FrameViewer.DefaultOptions;
|
23
|
+
}
|
21
24
|
|
22
25
|
declare namespace FrameViewer {
|
23
26
|
interface Any extends AnyFrameViewer {}
|
@@ -25,11 +28,17 @@ declare namespace FrameViewer {
|
|
25
28
|
|
26
29
|
interface RenderContext extends ApplicationV2.RenderContext {}
|
27
30
|
|
28
|
-
interface Configuration extends
|
31
|
+
interface Configuration<FrameViewer extends FrameViewer.Any = FrameViewer.Any>
|
32
|
+
extends ApplicationV2.Configuration<FrameViewer> {
|
29
33
|
/** The initial URL to navigate to */
|
30
34
|
url: string;
|
31
35
|
}
|
32
36
|
|
37
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
38
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
39
|
+
type DefaultOptions<FrameViewer extends FrameViewer.Any = FrameViewer.Any> = DeepPartial<Configuration<FrameViewer>> &
|
40
|
+
object;
|
41
|
+
|
33
42
|
interface RenderOptions extends ApplicationV2.RenderOptions {}
|
34
43
|
}
|
35
44
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../../api/application.d.mts";
|
3
3
|
import type HandlebarsApplicationMixin from "../../api/handlebars-application.d.mts";
|
4
4
|
|
@@ -17,14 +17,28 @@ declare class InvitationLinks<
|
|
17
17
|
RenderContext extends InvitationLinks.RenderContext = InvitationLinks.RenderContext,
|
18
18
|
Configuration extends InvitationLinks.Configuration = InvitationLinks.Configuration,
|
19
19
|
RenderOptions extends InvitationLinks.RenderOptions = InvitationLinks.RenderOptions,
|
20
|
-
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
20
|
+
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
21
|
+
// Fake override.
|
22
|
+
static override DEFAULT_OPTIONS: InvitationLinks.DefaultOptions;
|
23
|
+
}
|
21
24
|
|
22
25
|
declare namespace InvitationLinks {
|
23
26
|
interface Any extends AnyInvitationLinks {}
|
24
27
|
interface AnyConstructor extends Identity<typeof AnyInvitationLinks> {}
|
25
28
|
|
26
29
|
interface RenderContext extends HandlebarsApplicationMixin.RenderContext, ApplicationV2.RenderContext {}
|
27
|
-
|
30
|
+
|
31
|
+
interface Configuration<InvitationLinks extends InvitationLinks.Any = InvitationLinks.Any>
|
32
|
+
extends HandlebarsApplicationMixin.Configuration,
|
33
|
+
ApplicationV2.Configuration<InvitationLinks> {}
|
34
|
+
|
35
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
36
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
37
|
+
type DefaultOptions<InvitationLinks extends InvitationLinks.Any = InvitationLinks.Any> = DeepPartial<
|
38
|
+
Configuration<InvitationLinks>
|
39
|
+
> &
|
40
|
+
object;
|
41
|
+
|
28
42
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
29
43
|
}
|
30
44
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../../api/application.d.mts";
|
3
3
|
import type HandlebarsApplicationMixin from "../../api/handlebars-application.d.mts";
|
4
4
|
|
@@ -20,14 +20,28 @@ declare class ModuleManagement<
|
|
20
20
|
RenderContext extends ModuleManagement.RenderContext = ModuleManagement.RenderContext,
|
21
21
|
Configuration extends ModuleManagement.Configuration = ModuleManagement.Configuration,
|
22
22
|
RenderOptions extends ModuleManagement.RenderOptions = ModuleManagement.RenderOptions,
|
23
|
-
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
23
|
+
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
24
|
+
// Fake override.
|
25
|
+
static override DEFAULT_OPTIONS: ModuleManagement.DefaultOptions;
|
26
|
+
}
|
24
27
|
|
25
28
|
declare namespace ModuleManagement {
|
26
29
|
interface Any extends AnyModuleManagement {}
|
27
30
|
interface AnyConstructor extends Identity<typeof AnyModuleManagement> {}
|
28
31
|
|
29
32
|
interface RenderContext extends HandlebarsApplicationMixin.RenderContext, ApplicationV2.RenderContext {}
|
30
|
-
|
33
|
+
|
34
|
+
interface Configuration<ModuleManagement extends ModuleManagement.Any = ModuleManagement.Any>
|
35
|
+
extends HandlebarsApplicationMixin.Configuration,
|
36
|
+
ApplicationV2.Configuration<ModuleManagement> {}
|
37
|
+
|
38
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
39
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
40
|
+
type DefaultOptions<ModuleManagement extends ModuleManagement.Any = ModuleManagement.Any> = DeepPartial<
|
41
|
+
Configuration<ModuleManagement>
|
42
|
+
> &
|
43
|
+
object;
|
44
|
+
|
31
45
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
32
46
|
}
|
33
47
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type ApplicationV2 from "../../api/application.d.mts";
|
2
2
|
import type HandlebarsApplicationMixin from "../../api/handlebars-application.d.mts";
|
3
|
-
import type { Identity } from "#utils";
|
3
|
+
import type { DeepPartial, Identity } from "#utils";
|
4
4
|
|
5
5
|
declare module "#configuration" {
|
6
6
|
namespace Hooks {
|
@@ -17,14 +17,27 @@ declare class SupportDetails<
|
|
17
17
|
RenderContext extends SupportDetails.RenderContext = SupportDetails.RenderContext,
|
18
18
|
Configuration extends SupportDetails.Configuration = SupportDetails.Configuration,
|
19
19
|
RenderOptions extends SupportDetails.RenderOptions = SupportDetails.RenderOptions,
|
20
|
-
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
20
|
+
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
21
|
+
// Fake override.
|
22
|
+
static override DEFAULT_OPTIONS: SupportDetails.DefaultOptions;
|
23
|
+
}
|
21
24
|
|
22
25
|
declare namespace SupportDetails {
|
23
26
|
interface Any extends AnySupportDetails {}
|
24
27
|
interface AnyConstructor extends Identity<typeof AnySupportDetails> {}
|
25
28
|
|
26
29
|
interface RenderContext extends ApplicationV2.RenderContext {}
|
27
|
-
|
30
|
+
|
31
|
+
interface Configuration<SupportDetails extends SupportDetails.Any = SupportDetails.Any>
|
32
|
+
extends ApplicationV2.Configuration<SupportDetails> {}
|
33
|
+
|
34
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
35
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
36
|
+
type DefaultOptions<SupportDetails extends SupportDetails.Any = SupportDetails.Any> = DeepPartial<
|
37
|
+
Configuration<SupportDetails>
|
38
|
+
> &
|
39
|
+
object;
|
40
|
+
|
28
41
|
interface RenderOptions extends ApplicationV2.RenderOptions {}
|
29
42
|
}
|
30
43
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../../api/application.d.mts";
|
3
3
|
import type HandlebarsApplicationMixin from "../../api/handlebars-application.d.mts";
|
4
4
|
|
@@ -18,14 +18,26 @@ declare class WorldConfig<
|
|
18
18
|
RenderContext extends WorldConfig.RenderContext = WorldConfig.RenderContext,
|
19
19
|
Configuration extends WorldConfig.Configuration = WorldConfig.Configuration,
|
20
20
|
RenderOptions extends WorldConfig.RenderOptions = WorldConfig.RenderOptions,
|
21
|
-
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
21
|
+
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
22
|
+
// Fake override.
|
23
|
+
static override DEFAULT_OPTIONS: WorldConfig.DefaultOptions;
|
24
|
+
}
|
22
25
|
|
23
26
|
declare namespace WorldConfig {
|
24
27
|
interface Any extends AnyWorldConfig {}
|
25
28
|
interface AnyConstructor extends Identity<typeof AnyWorldConfig> {}
|
26
29
|
|
27
30
|
interface RenderContext extends HandlebarsApplicationMixin.RenderContext, ApplicationV2.RenderContext {}
|
28
|
-
|
31
|
+
|
32
|
+
interface Configuration<WorldConfig extends WorldConfig.Any = WorldConfig.Any>
|
33
|
+
extends HandlebarsApplicationMixin.Configuration,
|
34
|
+
ApplicationV2.Configuration<WorldConfig> {}
|
35
|
+
|
36
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
37
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
38
|
+
type DefaultOptions<WorldConfig extends WorldConfig.Any = WorldConfig.Any> = DeepPartial<Configuration<WorldConfig>> &
|
39
|
+
object;
|
40
|
+
|
29
41
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
30
42
|
}
|
31
43
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../api/application.d.mts";
|
3
3
|
import type HandlebarsApplicationMixin from "../api/handlebars-application.d.mts";
|
4
4
|
import type AbstractSidebarTab from "./sidebar-tab.d.mts";
|
@@ -23,6 +23,9 @@ declare class DocumentDirectory<
|
|
23
23
|
Configuration extends DocumentDirectory.Configuration = DocumentDirectory.Configuration,
|
24
24
|
RenderOptions extends DocumentDirectory.RenderOptions = DocumentDirectory.RenderOptions,
|
25
25
|
> extends HandlebarsApplicationMixin(AbstractSidebarTab)<RenderContext, Configuration, RenderOptions> {
|
26
|
+
// Fake override.
|
27
|
+
static override DEFAULT_OPTIONS: DocumentDirectory.DefaultOptions;
|
28
|
+
|
26
29
|
get documentClass(): DocumentClass;
|
27
30
|
}
|
28
31
|
|
@@ -32,7 +35,9 @@ declare namespace DocumentDirectory {
|
|
32
35
|
|
33
36
|
interface RenderContext extends HandlebarsApplicationMixin.RenderContext, AbstractSidebarTab.RenderContext {}
|
34
37
|
|
35
|
-
interface Configuration extends
|
38
|
+
interface Configuration<DocumentDirectory extends DocumentDirectory.Any = DocumentDirectory.Any>
|
39
|
+
extends HandlebarsApplicationMixin.RenderContext,
|
40
|
+
ApplicationV2.Configuration<DocumentDirectory> {
|
36
41
|
/** The Document collection that this directory represents. */
|
37
42
|
collection: foundry.documents.abstract.DirectoryCollectionMixin.AnyMixed;
|
38
43
|
|
@@ -40,6 +45,13 @@ declare namespace DocumentDirectory {
|
|
40
45
|
renderUpdateKeys: string[];
|
41
46
|
}
|
42
47
|
|
48
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
49
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
50
|
+
type DefaultOptions<DocumentDirectory extends DocumentDirectory.Any = DocumentDirectory.Any> = DeepPartial<
|
51
|
+
Configuration<DocumentDirectory>
|
52
|
+
> &
|
53
|
+
object;
|
54
|
+
|
43
55
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
44
56
|
}
|
45
57
|
|
@@ -17,6 +17,9 @@ declare abstract class AbstractSidebarTab<
|
|
17
17
|
Configuration extends AbstractSidebarTab.Configuration = AbstractSidebarTab.Configuration,
|
18
18
|
RenderOptions extends AbstractSidebarTab.RenderOptions = AbstractSidebarTab.RenderOptions,
|
19
19
|
> extends ApplicationV2<RenderContext, Configuration, RenderOptions> {
|
20
|
+
// Fake override.
|
21
|
+
static override DEFAULT_OPTIONS: AbstractSidebarTab.DefaultOptions;
|
22
|
+
|
20
23
|
static tabName: string;
|
21
24
|
|
22
25
|
static override readonly emittedEvents: string[];
|
@@ -85,7 +88,17 @@ declare namespace AbstractSidebarTab {
|
|
85
88
|
interface AnyConstructor extends Identity<typeof AnyAbstractSidebarTab> {}
|
86
89
|
|
87
90
|
interface RenderContext extends ApplicationV2.RenderContext {}
|
88
|
-
|
91
|
+
|
92
|
+
interface Configuration<AbstractSidebarTab extends AbstractSidebarTab.Any = AbstractSidebarTab.Any>
|
93
|
+
extends ApplicationV2.Configuration<AbstractSidebarTab> {}
|
94
|
+
|
95
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
96
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
97
|
+
type DefaultOptions<AbstractSidebarTab extends AbstractSidebarTab.Any = AbstractSidebarTab.Any> = DeepPartial<
|
98
|
+
Configuration<AbstractSidebarTab>
|
99
|
+
> &
|
100
|
+
object;
|
101
|
+
|
89
102
|
interface RenderOptions extends ApplicationV2.RenderOptions {}
|
90
103
|
|
91
104
|
type EmittedEvents = Readonly<["render", "close", "position", "activate", "deactivate"]>;
|
@@ -19,7 +19,7 @@ declare class Sidebar<
|
|
19
19
|
Configuration extends Sidebar.Configuration = Sidebar.Configuration,
|
20
20
|
RenderOptions extends Sidebar.RenderOptions = Sidebar.RenderOptions,
|
21
21
|
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
22
|
-
static override DEFAULT_OPTIONS:
|
22
|
+
static override DEFAULT_OPTIONS: Sidebar.DefaultOptions;
|
23
23
|
|
24
24
|
// TODO: This override of `TABS` is completely unsound subclassing-wise.
|
25
25
|
// static override TABS: Record<string, Sidebar.TabDescriptor>;
|
@@ -39,7 +39,7 @@ declare class Sidebar<
|
|
39
39
|
/**
|
40
40
|
* The currently popped-out sidebar tabs.
|
41
41
|
*/
|
42
|
-
popouts: Record<string, foundry.applications.sidebar.
|
42
|
+
popouts: Record<string, foundry.applications.sidebar.Sidebar>;
|
43
43
|
|
44
44
|
protected override _configureRenderOptions(options: DeepPartial<RenderOptions>): void;
|
45
45
|
|
@@ -104,7 +104,15 @@ declare namespace Sidebar {
|
|
104
104
|
interface AnyConstructor extends Identity<typeof AnySidebar> {}
|
105
105
|
|
106
106
|
interface RenderContext extends HandlebarsApplicationMixin.RenderContext, ApplicationV2.RenderContext {}
|
107
|
-
|
107
|
+
|
108
|
+
interface Configuration<Sidebar extends Sidebar.Any = Sidebar.Any>
|
109
|
+
extends HandlebarsApplicationMixin.Configuration,
|
110
|
+
ApplicationV2.Configuration<Sidebar> {}
|
111
|
+
|
112
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
113
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
114
|
+
type DefaultOptions<Sidebar extends Sidebar.Any = Sidebar.Any> = DeepPartial<Configuration<Sidebar>> & object;
|
115
|
+
|
108
116
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
109
117
|
|
110
118
|
interface TabDescriptor {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../api/application.d.mts";
|
3
3
|
|
4
4
|
declare module "#configuration" {
|
@@ -17,7 +17,10 @@ declare class GamePause<
|
|
17
17
|
RenderContext extends GamePause.RenderContext = GamePause.RenderContext,
|
18
18
|
Configuration extends GamePause.Configuration = GamePause.Configuration,
|
19
19
|
RenderOptions extends GamePause.RenderOptions = GamePause.RenderOptions,
|
20
|
-
> extends ApplicationV2<RenderContext, Configuration, RenderOptions> {
|
20
|
+
> extends ApplicationV2<RenderContext, Configuration, RenderOptions> {
|
21
|
+
// Fake override.
|
22
|
+
static override DEFAULT_OPTIONS: GamePause.DefaultOptions;
|
23
|
+
}
|
21
24
|
|
22
25
|
declare namespace GamePause {
|
23
26
|
interface Any extends AnyGamePause {}
|
@@ -34,7 +37,13 @@ declare namespace GamePause {
|
|
34
37
|
spin: boolean;
|
35
38
|
}
|
36
39
|
|
37
|
-
interface Configuration extends
|
40
|
+
interface Configuration<GamePause extends GamePause.Any = GamePause.Any>
|
41
|
+
extends ApplicationV2.Configuration<GamePause> {}
|
42
|
+
|
43
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
44
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
45
|
+
type DefaultOptions<GamePause extends GamePause.Any = GamePause.Any> = DeepPartial<Configuration<GamePause>> & object;
|
46
|
+
|
38
47
|
interface RenderOptions extends ApplicationV2.RenderOptions {}
|
39
48
|
}
|
40
49
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../api/application.d.mts";
|
3
3
|
import type HandlebarsApplicationMixin from "../api/handlebars-application.d.mts";
|
4
4
|
|
@@ -20,9 +20,12 @@ declare module "#configuration" {
|
|
20
20
|
*/
|
21
21
|
declare class Hotbar<
|
22
22
|
RenderContext extends object = Hotbar.RenderContext,
|
23
|
-
Configuration extends
|
24
|
-
RenderOptions extends
|
25
|
-
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
23
|
+
Configuration extends Hotbar.Configuration = Hotbar.Configuration,
|
24
|
+
RenderOptions extends Hotbar.RenderOptions = Hotbar.RenderOptions,
|
25
|
+
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
26
|
+
// Fake override.
|
27
|
+
static override DEFAULT_OPTIONS: Hotbar.DefaultOptions;
|
28
|
+
}
|
26
29
|
|
27
30
|
declare namespace Hotbar {
|
28
31
|
interface Any extends AnyHotbar {}
|
@@ -41,7 +44,14 @@ declare namespace Hotbar {
|
|
41
44
|
page: number;
|
42
45
|
}
|
43
46
|
|
44
|
-
interface Configuration extends
|
47
|
+
interface Configuration<Hotbar extends Hotbar.Any = Hotbar.Any>
|
48
|
+
extends HandlebarsApplicationMixin.Configuration,
|
49
|
+
ApplicationV2.Configuration<Hotbar> {}
|
50
|
+
|
51
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
52
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
53
|
+
type DefaultOptions<Hotbar extends Hotbar.Any = Hotbar.Any> = DeepPartial<Configuration<Hotbar>> & object;
|
54
|
+
|
45
55
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
46
56
|
}
|
47
57
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../api/application.d.mts";
|
3
3
|
import type HandlebarsApplicationMixin from "../api/handlebars-application.d.mts";
|
4
4
|
|
@@ -18,7 +18,10 @@ declare class MainMenu<
|
|
18
18
|
RenderContext extends object = MainMenu.RenderContext,
|
19
19
|
Configuration extends MainMenu.Configuration = MainMenu.Configuration,
|
20
20
|
RenderOptions extends MainMenu.RenderOptions = MainMenu.RenderOptions,
|
21
|
-
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
21
|
+
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
22
|
+
// Fake override.
|
23
|
+
static override DEFAULT_OPTIONS: MainMenu.DefaultOptions;
|
24
|
+
}
|
22
25
|
|
23
26
|
declare namespace MainMenu {
|
24
27
|
interface Any extends AnyMainMenu {}
|
@@ -32,7 +35,14 @@ declare namespace MainMenu {
|
|
32
35
|
items: Record<string, MainMenuItem>;
|
33
36
|
}
|
34
37
|
|
35
|
-
interface Configuration extends
|
38
|
+
interface Configuration<MainMenu extends MainMenu.Any = MainMenu.Any>
|
39
|
+
extends HandlebarsApplicationMixin.Configuration,
|
40
|
+
ApplicationV2.Configuration<MainMenu> {}
|
41
|
+
|
42
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
43
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
44
|
+
type DefaultOptions<MainMenu extends MainMenu.Any = MainMenu.Any> = DeepPartial<Configuration<MainMenu>> & object;
|
45
|
+
|
36
46
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
37
47
|
|
38
48
|
interface MainMenuItem {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Identity } from "#utils";
|
1
|
+
import type { DeepPartial, Identity } from "#utils";
|
2
2
|
import type ApplicationV2 from "../api/application.d.mts";
|
3
3
|
import type HandlebarsApplicationMixin from "../api/handlebars-application.d.mts";
|
4
4
|
|
@@ -19,7 +19,10 @@ declare class Players<
|
|
19
19
|
RenderContext extends Players.RenderContext = Players.RenderContext,
|
20
20
|
Configuration extends Players.Configuration = Players.Configuration,
|
21
21
|
RenderOptions extends Players.RenderOptions = Players.RenderOptions,
|
22
|
-
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
22
|
+
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
23
|
+
// Fake override.
|
24
|
+
static override DEFAULT_OPTIONS: Players.DefaultOptions;
|
25
|
+
}
|
23
26
|
|
24
27
|
declare namespace Players {
|
25
28
|
interface Any extends AnyPlayers {}
|
@@ -45,7 +48,14 @@ declare namespace Players {
|
|
45
48
|
border: string;
|
46
49
|
}
|
47
50
|
|
48
|
-
interface Configuration extends
|
51
|
+
interface Configuration<Players extends Players.Any = Players.Any>
|
52
|
+
extends HandlebarsApplicationMixin.Configuration,
|
53
|
+
ApplicationV2.Configuration<Players> {}
|
54
|
+
|
55
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
56
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
57
|
+
type DefaultOptions<Players extends Players.Any = Players.Any> = DeepPartial<Configuration<Players>> & object;
|
58
|
+
|
49
59
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
50
60
|
}
|
51
61
|
|
@@ -20,7 +20,7 @@ declare class RegionLegend<
|
|
20
20
|
> extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
|
21
21
|
#RegionLegend: true;
|
22
22
|
|
23
|
-
static override DEFAULT_OPTIONS:
|
23
|
+
static override DEFAULT_OPTIONS: RegionLegend.DefaultOptions;
|
24
24
|
static override PARTS: Record<string, HandlebarsApplicationMixin.HandlebarsTemplatePart>;
|
25
25
|
|
26
26
|
/** The currently viewed elevation range. */
|
@@ -81,7 +81,16 @@ declare namespace RegionLegend {
|
|
81
81
|
top: number | string;
|
82
82
|
}
|
83
83
|
|
84
|
-
interface Configuration extends
|
84
|
+
interface Configuration<RegionLegend extends RegionLegend.Any = RegionLegend.Any>
|
85
|
+
extends HandlebarsApplicationMixin.Configuration,
|
86
|
+
ApplicationV2.Configuration<RegionLegend> {}
|
87
|
+
|
88
|
+
// Note(LukeAbby): This `& object` is so that the `DEFAULT_OPTIONS` can be overridden more easily
|
89
|
+
// Without it then `static override DEFAULT_OPTIONS = { unrelatedProp: 123 }` would error.
|
90
|
+
type DefaultOptions<RegionLegend extends RegionLegend.Any = RegionLegend.Any> = DeepPartial<
|
91
|
+
Configuration<RegionLegend>
|
92
|
+
> &
|
93
|
+
object;
|
85
94
|
|
86
95
|
interface RenderOptions extends HandlebarsApplicationMixin.RenderOptions, ApplicationV2.RenderOptions {}
|
87
96
|
}
|