Prevent data from being undefined within actors and sheets because of my attempt at getting TS to play nicely

This commit is contained in:
Oliver-Akins 2024-03-18 23:28:55 -06:00
parent 33ccb01a6f
commit 30ed81cafa
2 changed files with 0 additions and 6 deletions

View file

@ -1,8 +1,6 @@
import { localizer } from "../../utils/localizer.mjs"; import { localizer } from "../../utils/localizer.mjs";
export class DotDungeonActor extends Actor { export class DotDungeonActor extends Actor {
/** @type {any} */
system;
async openEmbeddedSheet($event) { async openEmbeddedSheet($event) {
const data = $event.target.dataset; const data = $event.target.dataset;

View file

@ -5,10 +5,6 @@ import { modifierToString } from "../../../utils/modifierToString.mjs";
import { Player } from "../../../documents/Actor/Player.mjs"; import { Player } from "../../../documents/Actor/Player.mjs";
export class PlayerSheetv2 extends GenericActorSheet { export class PlayerSheetv2 extends GenericActorSheet {
/** @type {Player | null} */
actor;
static get defaultOptions() { static get defaultOptions() {
let opts = mergeObject( let opts = mergeObject(
super.defaultOptions, super.defaultOptions,