Update TODOs

This commit is contained in:
Johannes Loher 2021-01-29 16:44:08 +01:00
parent 3d5912a631
commit 628490c6f2

View file

@ -117,7 +117,7 @@ export class DS4ActorSheet extends ActorSheet<unknown, DS4Actor> {
};
// Finally, create the item!
return this.actor.createOwnedItem(itemData as DS4ItemData); // TODO(types): Improve upstream typing of createOwnedItem. It is possible to leave parts out here.
return this.actor.createOwnedItem(itemData as DS4ItemData); // TODO(types): Improve upstream typing of createOwnedItem. It is possible to leave parts out here. Should be fine after https://github.com/League-of-Foundry-Developers/foundry-vtt-types/pull/4/ is merged
}
/**
@ -132,7 +132,7 @@ export class DS4ActorSheet extends ActorSheet<unknown, DS4Actor> {
console.log("Current target:", $(ev.currentTarget).get(0)["name"]);
const el: HTMLFormElement = $(ev.currentTarget).get(0);
const id = $(ev.currentTarget).parents(".item").data("itemId");
const item = (duplicate(this.actor.getOwnedItem(id)) as unknown) as DS4ItemData; // TODO(types): Possible get better type definition for duplicate into upstream
const item = (duplicate(this.actor.getOwnedItem(id)) as unknown) as DS4ItemData; // TODO(types): Possibly get better type definition for duplicate into upstream
const property: string | undefined = $(ev.currentTarget).data("property");
// Early return: