mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08: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:
parent
7b8d507139
commit
850d555866
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user