remove unused arg

pull/10798/head
Rich Harris 2 years ago
parent d102d4ebf1
commit 3f3c7b09e5

@ -93,7 +93,7 @@ export function animation(element, get_fn, get_params) {
apply() { apply() {
to = this.element.getBoundingClientRect(); to = this.element.getBoundingClientRect();
const options = get_fn()(this.element, { from, to }, get_params?.(), {}); // TODO what is the last argument? const options = get_fn()(this.element, { from, to }, get_params?.());
animation?.abort(); animation?.abort();

@ -186,8 +186,7 @@ export type TransitionFn<P> = (
export type AnimateFn<P> = ( export type AnimateFn<P> = (
element: Element, element: Element,
rects: { from: DOMRect; to: DOMRect }, rects: { from: DOMRect; to: DOMRect },
props: P, props: P
options: {}
) => TransitionConfig; ) => TransitionConfig;
export type TransitionConfig = { export type TransitionConfig = {

Loading…
Cancel
Save