@vttforge/core / ActorDataModel
Function: ActorDataModel()
ActorDataModel(
type): (target,_context) =>void
Experimental
File this data model under an Actor subtype.
ts
@ActorDataModel('character')
class CharacterData extends BaseTypeDataModel(defineCharacterSchema) {}The type is the key as it appears in your manifest's documentTypes. A module contributing a subtype uses the prefixed form its manifest declares — my-module.vehicle — because that is the key Foundry files it under.
New in 0.13, and no consumer has used it yet. The shape can change in a minor.
Parameters
type
string
Returns
(target, _context) => void