You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/src/runtime/action/index.ts

9 lines
284 B

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