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
This commit is contained in:
ian lyons
2018-08-22 17:08:54 -07:00
committed by GitHub
parent 1f04f4a5a6
commit d9faae51bf

View File

@@ -14,12 +14,13 @@ type FontFamily =
type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never, [x: number]: never })[keyof T]>;
type CSSProperties = Omit<BaseCSSProperties, 'fontFamily'> & {
type CSSProperties = Omit<BaseCSSProperties, 'fontFamily' | 'transition' | 'animationName' > & {
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;
}