From 66b3096926638c160f6409c2b233ca11617f48b7 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Tue, 20 Apr 2021 15:41:26 +0200 Subject: [PATCH] Remove last ts-expect-error --- ts/editor/cloze.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ts/editor/cloze.ts b/ts/editor/cloze.ts index 112c393e6..9d3be3530 100644 --- a/ts/editor/cloze.ts +++ b/ts/editor/cloze.ts @@ -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}::`, "}}"); }