From 73a6d2bd40153d4500764681cfd2d9f295c1c41d Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Tue, 3 Aug 2021 06:12:04 +0200 Subject: [PATCH] Satisfy eslint --- ts/editor/label-container.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/editor/label-container.ts b/ts/editor/label-container.ts index 6b657fbe6..bc6816e54 100644 --- a/ts/editor/label-container.ts +++ b/ts/editor/label-container.ts @@ -10,7 +10,7 @@ import { appendInParentheses } from "./helpers"; import { getCurrentField, forEditorField, i18n } from "."; import pinIcon from "./pin-angle.svg"; -function toggleStickyCurrentField() { +function toggleStickyCurrentField(): void { const currentField = getCurrentField(); if (currentField) { @@ -20,13 +20,13 @@ function toggleStickyCurrentField() { } } -function toggleStickyAll() { +function toggleStickyAll(): void { bridgeCommand("toggleStickyAll", (values: boolean[]) => forEditorField(values, (field, value) => field.labelContainer.setSticky(value)) ); } -export function activateStickyShortcuts() { +export function activateStickyShortcuts(): void { registerShortcut(toggleStickyCurrentField, "F9"); registerShortcut(toggleStickyAll, "Shift+F9"); }