Slightly improve AlertManagerState show typing

`typeof Alert` is more correct than `Alert`, since we're accepting classes not instances.
This commit is contained in:
Alexander Skvortsov 2021-12-12 22:34:47 -05:00
parent 7b8d507139
commit 850d555866

View File

@ -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