From 8f006771ff8b31afab56e7d650dc3cefff73cd65 Mon Sep 17 00:00:00 2001 From: Chris Helgert Date: Mon, 7 Oct 2019 10:47:37 +0200 Subject: [PATCH] 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. --- src/runtime/animate/index.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/runtime/animate/index.ts b/src/runtime/animate/index.ts index d00d23c98d..ed6764a32c 100644 --- a/src/runtime/animate/index.ts +++ b/src/runtime/animate/index.ts @@ -1,14 +1,8 @@ import { cubicOut } from 'svelte/easing'; import { is_function } from 'svelte/internal'; +import { TransitionConfig } from 'svelte/transition'; -// todo: same as Transition, should it be shared? -export interface AnimationConfig { - delay?: number; - duration?: number; - easing?: (t: number) => number; - css?: (t: number, u: number) => string; - tick?: (t: number, u: number) => void; -} +export interface AnimationConfig extends TransitionConfig {} interface FlipParams { delay: number;