From 036974862971077e1e2a6b98815b7f3a4948ff65 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Wed, 30 Jun 2021 16:02:49 +0200 Subject: [PATCH] Update types and remove unnecessary ts-ignores --- src/module/actor/sheets/actor-sheet.ts | 3 --- src/module/actor/sheets/character-sheet.ts | 3 --- src/module/actor/sheets/creature-sheet.ts | 3 --- src/module/item/item-sheet.ts | 3 --- yarn.lock | 4 ++-- 5 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/module/actor/sheets/actor-sheet.ts b/src/module/actor/sheets/actor-sheet.ts index 93f03b64..ab884648 100644 --- a/src/module/actor/sheets/actor-sheet.ts +++ b/src/module/actor/sheets/actor-sheet.ts @@ -19,9 +19,6 @@ import { isCheck } from "../actor-data-properties"; export class DS4ActorSheet extends ActorSheet { /** @override */ static get defaultOptions(): ActorSheet.Options { - // TODO: Improve - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore return foundry.utils.mergeObject(super.defaultOptions, { classes: ["ds4", "sheet", "actor"], height: 620, diff --git a/src/module/actor/sheets/character-sheet.ts b/src/module/actor/sheets/character-sheet.ts index 5c66603c..a779a998 100644 --- a/src/module/actor/sheets/character-sheet.ts +++ b/src/module/actor/sheets/character-sheet.ts @@ -10,9 +10,6 @@ import { DS4ActorSheet } from "./actor-sheet"; export class DS4CharacterActorSheet extends DS4ActorSheet { /** @override */ static get defaultOptions(): ActorSheet.Options { - // TODO: Improve - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore return foundry.utils.mergeObject(super.defaultOptions, { classes: ["ds4", "sheet", "actor", "character"], }); diff --git a/src/module/actor/sheets/creature-sheet.ts b/src/module/actor/sheets/creature-sheet.ts index bb583dd8..56b9dfd6 100644 --- a/src/module/actor/sheets/creature-sheet.ts +++ b/src/module/actor/sheets/creature-sheet.ts @@ -10,9 +10,6 @@ import { DS4ActorSheet } from "./actor-sheet"; export class DS4CreatureActorSheet extends DS4ActorSheet { /** @override */ static get defaultOptions(): ActorSheet.Options { - // TODO: Improve - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore return foundry.utils.mergeObject(super.defaultOptions, { classes: ["ds4", "sheet", "actor", "creature"], }); diff --git a/src/module/item/item-sheet.ts b/src/module/item/item-sheet.ts index e1d88bc1..02269fb9 100644 --- a/src/module/item/item-sheet.ts +++ b/src/module/item/item-sheet.ts @@ -14,9 +14,6 @@ import { isDS4ItemDataTypePhysical } from "./item-data-source"; export class DS4ItemSheet extends ItemSheet { /** @override */ static get defaultOptions(): ItemSheet.Options { - // TODO: Improve - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore return foundry.utils.mergeObject(super.defaultOptions, { width: 540, height: 400, diff --git a/yarn.lock b/yarn.lock index 830fab24..46b78eb5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -841,7 +841,7 @@ __metadata: "@league-of-foundry-developers/foundry-vtt-types@https://github.com/League-of-Foundry-Developers/foundry-vtt-types.git#foundry-0.8.x": version: 0.7.9-6 - resolution: "@league-of-foundry-developers/foundry-vtt-types@https://github.com/League-of-Foundry-Developers/foundry-vtt-types.git#commit=9ea68fe6147f4e3da061754c599482c8607f93fa" + resolution: "@league-of-foundry-developers/foundry-vtt-types@https://github.com/League-of-Foundry-Developers/foundry-vtt-types.git#commit=17d261a85b5b99f014adcc45980e04a424640e2c" dependencies: "@types/jquery": ~3.5.5 "@types/simple-peer": ~9.11.0 @@ -851,7 +851,7 @@ __metadata: socket.io-client: 4.1.2 tinymce: 5.8.1 typescript: ^4.1.6 - checksum: 6945db2b6be3204e63d2be0f3a05115b810875de3a8031383b409049c03a65b3c3e033323b47c819b1d773d57c51e495eac1af343a0325e07f075acd988998d5 + checksum: 51af64acf728ecd63f1dd1d14044fc1fa2cc83126aa948fac917be983b9c32ad54c572d400040b56c1f91594dad708fbd5e1b4545a79082744b75a6c93bab310 languageName: node linkType: hard