actually only 1 and avoid conflict with TS utility

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

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

Loading…
Cancel
Save