Skip to content

Commit 0831887

Browse files
chrishelgertConduitry
authored andcommitted
chore: resolve TODO for reusing of TransitionConfig
But also provide the possibility to override the props and also keeps the namespace to provide breaking changes.
1 parent 1fce4c6 commit 0831887

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/runtime/animate/index.ts

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

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-
}
5+
export interface AnimationConfig extends TransitionConfig {}
126

137
interface FlipParams {
148
delay: number;

0 commit comments

Comments
 (0)