@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250728030921 → 13.346.0-beta.20250728061606
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.20250728061606",
|
5
5
|
"description": "TypeScript type definitions for Foundry VTT",
|
6
6
|
"type": "module",
|
7
7
|
"types": "./src/index.d.mts",
|
@@ -246,7 +246,7 @@ declare namespace FormApplication {
|
|
246
246
|
// See {@linkcode HandleEmptyObject} for more information.
|
247
247
|
(<T>() => T extends FormApplication.NoObject ? 1 : 0) extends <T>() => T extends ConcreteObject ? 1 : 0
|
248
248
|
? [object?: ConcreteObject, options?: Partial<Options>]
|
249
|
-
:
|
249
|
+
: undefined extends ConcreteObject
|
250
250
|
? [object?: ConcreteObject, options?: Partial<Options>]
|
251
251
|
: [object: ConcreteObject, options?: Partial<Options>];
|
252
252
|
|
@@ -1203,16 +1203,15 @@ declare namespace Document {
|
|
1203
1203
|
SystemMap extends Record<SubType, object | undefined>,
|
1204
1204
|
SubType extends string,
|
1205
1205
|
ConfiguredSubType extends string,
|
1206
|
-
> =
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
: SystemMap[Exclude<SubType, ConfiguredSubType>]);
|
1206
|
+
> = SystemConfig extends { readonly [_ in Name]: { readonly discriminate: "all" } }
|
1207
|
+
? _DiscriminateUndefined<SystemMap[SubType]>
|
1208
|
+
:
|
1209
|
+
| ([Extract<SubType, ConfiguredSubType>] extends [never]
|
1210
|
+
? never
|
1211
|
+
: _DiscriminateUndefined<SystemMap[Extract<SubType, ConfiguredSubType>]>)
|
1212
|
+
| ([Exclude<SubType, ConfiguredSubType>] extends [never]
|
1213
|
+
? never
|
1214
|
+
: SystemMap[Exclude<SubType, ConfiguredSubType>]);
|
1216
1215
|
|
1217
1216
|
/** @internal */
|
1218
1217
|
type _DiscriminateUndefined<T extends object | undefined> = DiscriminatedUnion<Exclude<T, undefined>>;
|