Skip to content

Commit

Permalink
Remove backwards compatability for Actor.ItemTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeAbby committed Jan 1, 2025
1 parent 1c8b177 commit 530bc00
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/foundry/client/data/documents/actor.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ declare global {
type: K;
} & (DataModelConfig extends { Item: { readonly [_ in K]?: infer SystemData } }
? {
// For backwards compatability both instances and classes are supported for the time being.
// Only constructors are valid however.
system: SystemData extends abstract new (...args: infer _1) => infer Instance ? Instance : SystemData;
system: SystemData;
}
: // eslint-disable-next-line @typescript-eslint/no-empty-object-type
{})
Expand Down

0 comments on commit 530bc00

Please sign in to comment.