Type Alias ActiveEffectChangeHandler
ActiveEffectChangeHandler: ( targetDoc: documents.Actor | Item | TokenDocument, change: ActiveEffectChangeData, options?: @param {DataField} [options.field] The field. If not supplied, it will be retrieved from the supplied model.
* @param {Record<string, unknown>} [options.replacementData] Data used to resolve "@" expressions.
* @param {boolean} [options.modifyTarget] Modify the target Document with the updated value.
*
,) => Promise<Record<string, unknown> | void> Type Declaration
- (
targetDoc: documents.Actor | Item | TokenDocument,
change: ActiveEffectChangeData,
options?: @param {DataField} [options.field] The field. If not supplied, it will be retrieved from the supplied model.
* @param {Record<string, unknown>} [options.replacementData] Data used to resolve "@" expressions.
* @param {boolean} [options.modifyTarget] Modify the target Document with the updated value.
* ,
): Promise<Record<string, unknown> | void> Parameters
- targetDoc: documents.Actor | Item | TokenDocument
- change: ActiveEffectChangeData
Optionaloptions: @param {DataField} [options.field] The field. If not supplied, it will be retrieved from the supplied model.
* @param {Record<string, unknown>} [options.replacementData] Data used to resolve "@" expressions.
* @param {boolean} [options.modifyTarget] Modify the target Document with the updated value.
*
Returns Promise<Record<string, unknown> | void>
A function that applies the change to a document