reverse the order of generics

pull/7121/head
Ignatius Bagus 5 years ago committed by GitHub
parent 1614bdc316
commit ae01d6acaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,6 +3,6 @@ export interface ActionReturn<Parameters = any> {
destroy?: () => void;
}
export interface Action<Parameters = any, Element = HTMLElement> {
export interface Action<Element = HTMLElement, Parameters = any> {
<Node extends Element>(node: Node, parameters?: Parameters): void | ActionReturn<Parameters>;
}

Loading…
Cancel
Save