Skip to content

Commit 43245a3

Browse files
committed
Revert "chore: resolve TODO for reusing of TransitionConfig"
This reverts commit 0831887. This was causing TypeScript linting errors, and can be revisited at another time.
1 parent 30bf5fe commit 43245a3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/runtime/animate/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import { cubicOut } from 'svelte/easing';
22
import { is_function } from 'svelte/internal';
3-
import { TransitionConfig } from 'svelte/transition';
43

5-
export interface AnimationConfig extends TransitionConfig {}
4+
// todo: same as Transition, should it be shared?
5+
export interface AnimationConfig {
6+
delay?: number;
7+
duration?: number;
8+
easing?: (t: number) => number;
9+
css?: (t: number, u: number) => string;
10+
tick?: (t: number, u: number) => void;
11+
}
612

713
interface FlipParams {
814
delay: number;

0 commit comments

Comments
 (0)