Remove last ts-expect-error

This commit is contained in:
Henrik Giesel 2021-04-20 15:41:26 +02:00
parent 731f9d109f
commit 66b3096926

View file

@ -10,6 +10,7 @@ import { iconButton } from "editor-toolbar/dynamicComponents";
import bracketsIcon from "./code-brackets.svg";
import { forEditorField } from ".";
import { wrap } from "./wrap";
const clozePattern = /\{\{c(\d+)::/gu;
function getCurrentHighestCloze(increment: boolean): number {
@ -32,8 +33,6 @@ function getCurrentHighestCloze(increment: boolean): number {
function onCloze(event: MouseEvent): void {
const highestCloze = getCurrentHighestCloze(!event.altKey);
// @ts-expect-error
wrap(`{{c${highestCloze}::`, "}}");
}