From a9d1a1f744b2423050d958ffecfaacc31a3f7ec1 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 28 May 2019 23:48:01 +0200 Subject: [PATCH] typos --- src/internal/animations.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/internal/animations.ts b/src/internal/animations.ts index c7192fce29..5a055ba6d2 100644 --- a/src/internal/animations.ts +++ b/src/internal/animations.ts @@ -4,12 +4,12 @@ import { create_rule, delete_rule } from './style_manager'; import { AnimationConfig } from '../animate'; -//todo: documentation says it is DOMRect, but in IE it would be ClientReact -type PositionReact = DOMRect|ClientRect; +//todo: documentation says it is DOMRect, but in IE it would be ClientRect +type PositionRect = DOMRect|ClientRect; -type AnimationFn = (node: Element, { from, to }: { from: PositionReact, to: PositionReact }, params: any) => AnimationConfig; +type AnimationFn = (node: Element, { from, to }: { from: PositionRect, to: PositionRect }, params: any) => AnimationConfig; -export function create_animation(node: Element & ElementCSSInlineStyle, from: PositionReact, fn: AnimationFn, params) { +export function create_animation(node: Element & ElementCSSInlineStyle, from: PositionRect, fn: AnimationFn, params) { if (!from) return noop; const to = node.getBoundingClientRect();