Skip to content

Commit

Permalink
Fix pair of types using/extending DataField (foundryvtt#14079)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam committed Mar 7, 2024
1 parent 2403ea9 commit 7d4a3a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/foundry/common/documents/setting.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ interface SettingMetadata extends DocumentMetadata {
type SettingSchema = {
_id: fields.DocumentIdField;
key: fields.StringField<string, string, true, false, false>;
value: fields.JSONField<unknown, true, true, false>;
value: fields.JSONField<NonNullable<JSONValue>, true, true, false>;
_stats: fields.DocumentStatsField;
};

Expand Down
2 changes: 1 addition & 1 deletion types/foundry/common/packages/sub-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type * as fields from "../data/fields.d.ts";
* A special `ObjectField` available to packages which configures any additional Document sub-types
* provided by the package.
*/
export default class AdditionalTypesField extends fields.ObjectField<object, false, false, true> {
export default class AdditionalTypesField extends fields.ObjectField<object, object, false, false, true> {
static get _defaults(): fields.ObjectFieldOptions<object, false, false, true>;

protected override _validateType(value: unknown, options?: Record<string, unknown>): void;
Expand Down

0 comments on commit 7d4a3a2

Please sign in to comment.