From 850d5558661b7fa8fc945e5ad280a7cf787b1c0a 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. --- framework/core/js/src/common/states/AlertManagerState.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/src/common/states/AlertManagerState.ts b/framework/core/js/src/common/states/AlertManagerState.ts index 076322ac1..a5e479546 100644 --- a/framework/core/js/src/common/states/AlertManagerState.ts +++ b/framework/core/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