mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
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:
5
types/aphrodite/index.d.ts
vendored
5
types/aphrodite/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user