Update types
This commit is contained in:
parent
9941f21b69
commit
6cdbcc6899
2 changed files with 8 additions and 4 deletions
|
@ -224,9 +224,13 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Data<DS4Actor>> {
|
||||||
/** @override */
|
/** @override */
|
||||||
protected async _onDropItem(
|
protected async _onDropItem(
|
||||||
event: DragEvent,
|
event: DragEvent,
|
||||||
data: { type: "Item" } & (DeepPartial<ActorSheet.OwnedItemData<DS4Actor>> | { pack: string } | { id: string }),
|
data: { type: "Item" } & (
|
||||||
|
| { data: DeepPartial<ActorSheet.OwnedItemData<DS4Actor>> }
|
||||||
|
| { pack: string }
|
||||||
|
| { id: string }
|
||||||
|
),
|
||||||
): Promise<boolean | undefined | ActorSheet.OwnedItemData<DS4Actor>> {
|
): Promise<boolean | undefined | ActorSheet.OwnedItemData<DS4Actor>> {
|
||||||
const item = ((await Item.fromDropData(data)) as unknown) as DS4Item;
|
const item = await DS4Item.fromDropData(data);
|
||||||
if (item && !this.actor.canOwnItemType(item.data.type)) {
|
if (item && !this.actor.canOwnItemType(item.data.type)) {
|
||||||
ui.notifications?.warn(
|
ui.notifications?.warn(
|
||||||
game.i18n.format("DS4.WarningActorCannotOwnItem", {
|
game.i18n.format("DS4.WarningActorCannotOwnItem", {
|
||||||
|
|
|
@ -3596,7 +3596,7 @@ __metadata:
|
||||||
|
|
||||||
"foundry-vtt-types@github:League-of-Foundry-Developers/foundry-vtt-types#foundry-0.7.9":
|
"foundry-vtt-types@github:League-of-Foundry-Developers/foundry-vtt-types#foundry-0.7.9":
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
resolution: "foundry-vtt-types@https://github.com/League-of-Foundry-Developers/foundry-vtt-types.git#commit=095cba6c567b86b11e61fdf6c96892949e5d5ad1"
|
resolution: "foundry-vtt-types@https://github.com/League-of-Foundry-Developers/foundry-vtt-types.git#commit=de66d24eb891c97923db47eb1a819eec2a298f02"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/howler": 2.2.1
|
"@types/howler": 2.2.1
|
||||||
"@types/jquery": 3.5.1
|
"@types/jquery": 3.5.1
|
||||||
|
@ -3605,7 +3605,7 @@ __metadata:
|
||||||
pixi.js: 5.3.4
|
pixi.js: 5.3.4
|
||||||
tinymce: 5.6.2
|
tinymce: 5.6.2
|
||||||
typescript: ^4.1.4
|
typescript: ^4.1.4
|
||||||
checksum: f88c3d3383984eec266c47d7c5f72ad97493921dfb23cbe83d67e5c95583b90d6c4924b7961136f2030aa3493c7710d04d0147f90d75cfb5e663f12c3c2b5d09
|
checksum: fb6065ce7ed2c969ee421abd3d259f264ed707fabfce01f27d59707338a9ca6854233c0cb8b91ef2310af22a7f7ee95b3e5080d0d2c6662e9b31ed3a5d10ba17
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue