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() {
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();

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

Loading…
Cancel
Save