From 5c64371d89433af473f939b0ff08efe57fbb542b Mon Sep 17 00:00:00 2001 From: Chris Gervang Date: Sat, 25 Mar 2017 17:13:32 -0700 Subject: [PATCH] Updating ReactCSS types to version 1.2 --- types/reactcss/index.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types/reactcss/index.d.ts b/types/reactcss/index.d.ts index 2d571674f7..3c0e03ee6e 100644 --- a/types/reactcss/index.d.ts +++ b/types/reactcss/index.d.ts @@ -1,12 +1,11 @@ -// Type definitions for ReactCSS v1.0.0 +// Type definitions for ReactCSS v1.2.0 // Project: http://reactcss.com/ -// Definitions by: Karol Janyst +// Definitions by: Chris Gervang , Karol Janyst // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 +// TypeScript Version: 2.2 import * as React from "react" - interface LoopableProps { "first-child"?: boolean "last-child"?: boolean @@ -19,11 +18,12 @@ interface HoverProps { hover?: boolean } -interface Classes { - default: any - [scope: string]: any +interface Classes { + default: Partial + [scope: string]: Partial } +export type CSS = React.CSSProperties export function hover(component: React.ComponentClass | React.StatelessComponent): React.ComponentClass export function loop(i: number, length: number): LoopableProps -export default function reactCSS(classes: Classes, ...activations: Array): any +export default function reactCSS(classes: Classes, ...activations: Array): T