Update vtt-types and get rid of now unnecessary @ts-ignores
This commit is contained in:
parent
836e57347f
commit
7ca8fff910
3 changed files with 37 additions and 12 deletions
|
@ -11,9 +11,6 @@ import { getCanvas } from "../helpers";
|
|||
* @returns The currently active {@link DS4Actor} if any, and `undefined` otherwise.
|
||||
*/
|
||||
export function getActiveActor(): DS4Actor | undefined {
|
||||
// TODO: Improve once ChatMessage is typed in upstream
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
const speaker = ChatMessage.getSpeaker();
|
||||
|
||||
const speakerToken = speaker.token ? getCanvas().tokens.get(speaker.token) : undefined;
|
||||
|
|
|
@ -43,10 +43,6 @@ class CheckFactory {
|
|||
);
|
||||
const formula = this.options.useSlayingDice ? `{${innerFormula}}x` : innerFormula;
|
||||
const roll = Roll.create(formula);
|
||||
|
||||
// TODO: Improve once ChatMessage is typed in upstream
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
const speaker = ChatMessage.getSpeaker();
|
||||
|
||||
return roll.toMessage(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue