From fc6661bee745b479b9015cfb5ebe5e22ef15fb62 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Fri, 11 Oct 2019 14:19:47 -0400 Subject: [PATCH] Revert "chore: resolve TODO for reusing of TransitionConfig" This reverts commit 0831887ef91b3a3a2439722bf95c0d367bac926d. This was causing TypeScript linting errors, and can be revisited at another time. --- src/runtime/animate/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/runtime/animate/index.ts b/src/runtime/animate/index.ts index eafa8c9cfd..071b6b199d 100644 --- a/src/runtime/animate/index.ts +++ b/src/runtime/animate/index.ts @@ -1,8 +1,14 @@ import { cubicOut } from 'svelte/easing'; import { is_function } from 'svelte/internal'; -import { TransitionConfig } from 'svelte/transition'; -export interface AnimationConfig extends TransitionConfig {} +// 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; +} interface FlipParams { delay: number;