@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250803184428 → 13.346.0-beta.20250804084032
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
3
3
|
"name": "@league-of-foundry-developers/foundry-vtt-types",
|
4
|
-
"version": "13.346.0-beta.
|
4
|
+
"version": "13.346.0-beta.20250804084032",
|
5
5
|
"description": "TypeScript type definitions for Foundry VTT",
|
6
6
|
"type": "module",
|
7
7
|
"types": "./src/index.d.mts",
|
package/src/types/config.d.mts
CHANGED
@@ -7,7 +7,6 @@ import * as configuration from "#configuration";
|
|
7
7
|
declare global {
|
8
8
|
interface AssumeHookRan extends configuration.AssumeHookRan {}
|
9
9
|
interface DocumentClassConfig extends configuration.DocumentClassConfig {}
|
10
|
-
interface DocumentInstanceConfig extends configuration.DocumentInstanceConfig {}
|
11
10
|
interface PlaceableObjectClassConfig extends configuration.PlaceableObjectClassConfig {}
|
12
11
|
interface DataConfig extends configuration.DataConfig {}
|
13
12
|
interface GetDataConfig extends configuration.GetDataConfig {}
|
@@ -4,6 +4,7 @@
|
|
4
4
|
import type { documents } from "../foundry/client/client.d.mts";
|
5
5
|
import type { Document } from "../foundry/common/abstract/_module.d.mts";
|
6
6
|
import type { InterfaceToObject, MakeConform, MustConform, FixedInstanceType } from "#utils";
|
7
|
+
import type * as configuration from "#configuration";
|
7
8
|
|
8
9
|
type DocumentConform<T> = MakeConform<T, Document.AnyConstructor>;
|
9
10
|
|
@@ -96,8 +97,8 @@ type GetDocumentClass<ConcreteDocumentType extends Document.Type> =
|
|
96
97
|
: DefaultDocumentClasses[ConcreteDocumentType];
|
97
98
|
|
98
99
|
type GetDocumentInstance<ConcreteDocumentType extends Document.Type> =
|
99
|
-
ConcreteDocumentType extends keyof DocumentInstanceConfig
|
100
|
-
? DocumentInstanceConfig[ConcreteDocumentType]
|
100
|
+
ConcreteDocumentType extends keyof configuration.DocumentInstanceConfig
|
101
|
+
? configuration.DocumentInstanceConfig[ConcreteDocumentType]
|
101
102
|
: ConcreteDocumentType extends keyof DocumentClassConfig
|
102
103
|
? FixedInstanceType<DocumentClassConfig[ConcreteDocumentType]>
|
103
104
|
: DefaultDocumentInstance[ConcreteDocumentType];
|