Update vtt-types and get rid of now unnecessary @ts-ignores

This commit is contained in:
Johannes Loher 2021-07-01 22:02:52 +02:00
parent 836e57347f
commit 7ca8fff910
3 changed files with 37 additions and 12 deletions

View file

@ -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;