From 718e01165afdcd8785b79ff8c54407a92dffe1c6 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Sun, 12 Dec 2021 22:34:47 -0500 Subject: [PATCH] Slightly improve AlertManagerState `show` typing `typeof Alert` is more correct than `Alert`, since we're accepting classes not instances. --- js/src/common/states/AlertManagerState.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/common/states/AlertManagerState.ts b/js/src/common/states/AlertManagerState.ts index 076322ac1..a5e479546 100644 --- a/js/src/common/states/AlertManagerState.ts +++ b/js/src/common/states/AlertManagerState.ts @@ -27,7 +27,7 @@ export default class AlertManagerState { */ show(children: Mithril.Children): AlertIdentifier; show(attrs: AlertAttrs, children: Mithril.Children): AlertIdentifier; - show(componentClass: Alert, attrs: AlertAttrs, children: Mithril.Children): AlertIdentifier; + show(componentClass: typeof Alert, attrs: AlertAttrs, children: Mithril.Children): AlertIdentifier; show(arg1: any, arg2?: any, arg3?: any) { // Assigns variables as per the above signatures