diff --git a/package-lock.json b/package-lock.json index 59fe8050..1ac37387 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3119,7 +3119,7 @@ } }, "foundry-vtt-types": { - "version": "github:League-of-Foundry-Developers/foundry-vtt-types#c25d4823c2950ce472fbac240d56ff07e2d4cdaa", + "version": "github:League-of-Foundry-Developers/foundry-vtt-types#e08a7166345d7905ac8324d6f418c05d98a49ebf", "from": "github:League-of-Foundry-Developers/foundry-vtt-types#foundry-0.7.9", "dev": true, "requires": { diff --git a/src/module/item/item-sheet.ts b/src/module/item/item-sheet.ts index b5f50264..3fe09a3d 100644 --- a/src/module/item/item-sheet.ts +++ b/src/module/item/item-sheet.ts @@ -99,7 +99,7 @@ export class DS4ItemSheet extends ItemSheet { case "create": return this._createActiveEffect(); case "edit": - const effect = this.item["effects"].get(li.data("effectId")); // TODO(types): replace with item.effect once https://github.com/kmoschcau/foundry-vtt-types/pull/216 is merged + const effect = this.item.effects.get(li.data("effectId")); return effect.sheet.render(true); case "delete": { return this.item.deleteEmbeddedEntity("ActiveEffect", li.data("effectId")); @@ -110,7 +110,7 @@ export class DS4ItemSheet extends ItemSheet { /** * Create a new ActiveEffect for the item using default data. */ - private async _createActiveEffect(): Promise { + private async _createActiveEffect(): Promise { const label = `New Effect`; const createData = { @@ -120,7 +120,7 @@ export class DS4ItemSheet extends ItemSheet { transfer: true, }; - const effect = await ActiveEffect.create(createData, this.item); + const effect = ActiveEffect.create(createData as ActiveEffect.Data, this.item); // TODO(types): ActiveEffect.create should be able to work with only partial createData. Fix this upstream return effect.create({}); } }