mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Slightly improve AlertManagerState show
typing
`typeof Alert` is more correct than `Alert`, since we're accepting classes not instances.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user