@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250909190212 → 13.346.0-beta.20250913175943

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.20250909190212",
4
+ "version": "13.346.0-beta.20250913175943",
5
5
  "description": "TypeScript type definitions for Foundry VTT",
6
6
  "type": "module",
7
7
  "types": "./src/index.d.mts",
@@ -390,9 +390,9 @@ declare namespace ApplicationV2 {
390
390
  id: string;
391
391
  group: string;
392
392
  active: boolean;
393
- cssClass: string;
394
- icon?: string | null | undefined;
395
- label?: string | null | undefined;
393
+ cssClass?: string | undefined;
394
+ icon?: string | undefined;
395
+ label?: string | undefined;
396
396
  }
397
397
 
398
398
  /** @remarks Used with `templates/generic/form-fields.hbs` */
@@ -1971,7 +1971,7 @@ declare namespace StringField {
1971
1971
  * - InitialValue: `{}`
1972
1972
  */
1973
1973
  declare class ObjectField<
1974
- const Options extends DataField.Options<AnyObject> = ObjectField.DefaultOptions,
1974
+ const Options extends DataField.Options<AnyMutableObject> = ObjectField.DefaultOptions,
1975
1975
  // eslint-disable-next-line @typescript-eslint/no-deprecated
1976
1976
  const AssignmentType = ObjectField.AssignmentType<Options>,
1977
1977
  const InitializedType = ObjectField.InitializedType<Options>,
@@ -1983,7 +1983,7 @@ declare class ObjectField<
1983
1983
  /** @defaultValue `false` */
1984
1984
  override nullable: boolean;
1985
1985
 
1986
- protected static override get _defaults(): DataField.Options<AnyObject>;
1986
+ protected static override get _defaults(): DataField.Options<AnyMutableObject>;
1987
1987
 
1988
1988
  /** @remarks Returns `{}` if {@link DataField.getInitialValue | `super.getInitialValue`} returns `undefined` */
1989
1989
  override getInitialValue(data?: unknown): InitializedType;
@@ -2036,10 +2036,10 @@ declare namespace ObjectField {
2036
2036
  * A helper type for the given options type merged into the default options of the ObjectField class.
2037
2037
  * @template Options - the options that override the default options
2038
2038
  */
2039
- type MergedOptions<Options extends DataField.Options<AnyObject>> = SimpleMerge<DefaultOptions, Options>;
2039
+ type MergedOptions<Options extends DataField.Options<AnyMutableObject>> = SimpleMerge<DefaultOptions, Options>;
2040
2040
 
2041
2041
  /** @internal */
2042
- type _EffectiveOptions<Options extends DataField.Options<AnyObject>> =
2042
+ type _EffectiveOptions<Options extends DataField.Options<AnyMutableObject>> =
2043
2043
  MergedOptions<Options> extends { readonly initial: undefined }
2044
2044
  ? // eslint-disable-next-line @typescript-eslint/no-empty-object-type
2045
2045
  SimpleMerge<MergedOptions<Options>, { initial: {} }>
@@ -2053,8 +2053,8 @@ declare namespace ObjectField {
2053
2053
  * for more details.
2054
2054
  */
2055
2055
  // eslint-disable-next-line @typescript-eslint/no-deprecated
2056
- type AssignmentType<Options extends DataField.Options<AnyObject>> = DataField.DerivedAssignmentType<
2057
- AnyObject,
2056
+ type AssignmentType<Options extends DataField.Options<AnyMutableObject>> = DataField.DerivedAssignmentType<
2057
+ AnyMutableObject,
2058
2058
  _EffectiveOptions<Options>
2059
2059
  >;
2060
2060
 
@@ -2062,8 +2062,8 @@ declare namespace ObjectField {
2062
2062
  * A shorthand for the initialized type of a ObjectField class.
2063
2063
  * @template Options - the options that override the default options
2064
2064
  */
2065
- type InitializedType<Options extends DataField.Options<AnyObject>> = DataField.DerivedInitializedType<
2066
- AnyObject,
2065
+ type InitializedType<Options extends DataField.Options<AnyMutableObject>> = DataField.DerivedInitializedType<
2066
+ AnyMutableObject,
2067
2067
  _EffectiveOptions<Options>
2068
2068
  >;
2069
2069
  }