Update TODOs
This commit is contained in:
parent
3d5912a631
commit
628490c6f2
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue