From d9faae51bff9e31709a42eed967ddfc0f200a42b Mon Sep 17 00:00:00 2001 From: ian lyons Date: Wed, 22 Aug 2018 17:08:54 -0700 Subject: [PATCH] Add aphrodite-specific animationName types. Aphrodite supports definition animationNames not just as the shorthand, but also as full-fledged definition objects: https://github.com/Khan/aphrodite#animations --- types/aphrodite/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/aphrodite/index.d.ts b/types/aphrodite/index.d.ts index bd2749f737..3e7807b6b6 100644 --- a/types/aphrodite/index.d.ts +++ b/types/aphrodite/index.d.ts @@ -14,12 +14,13 @@ type FontFamily = type Omit = Pick; -type CSSProperties = Omit & { +type CSSProperties = Omit & { fontFamily?: FontFamily | FontFamily[]; + animationName?: string | OpenCSSProperties | OpenCSSProperties[]; }; // For pseudo selectors and media queries -interface OpenCSSProperties extends CSSProperties { +interface OpenCSSProperties extends CSSProperties { [k: string]: CSSProperties[keyof CSSProperties] | CSSProperties; }