@types/reactcss
Advanced tools
Comparing version 1.0.2 to 1.2.0
@@ -1,11 +0,11 @@ | ||
// Type definitions for ReactCSS v1.0.0 | ||
// Type definitions for ReactCSS 1.2.0 | ||
// Project: http://reactcss.com/ | ||
// Definitions by: Karol Janyst <https://github.com/LKay> | ||
// Definitions by: Chris Gervang <https://github.com/chrisgervang>, Karol Janyst <https://github.com/LKay> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
// TypeScript Version: 2.2 | ||
import * as React from "react" | ||
interface LoopableProps { | ||
interface LoopableProps extends React.Props<any> { | ||
"nth-child": number | ||
"first-child"?: boolean | ||
@@ -15,16 +15,16 @@ "last-child"?: boolean | ||
odd?: boolean | ||
[nthChild: string]: boolean | ||
} | ||
interface HoverProps { | ||
interface HoverProps<T> extends React.Props<T> { | ||
hover?: boolean | ||
} | ||
interface Classes { | ||
default: any | ||
[scope: string]: any | ||
interface Classes<T> { | ||
default: Partial<T> | ||
[scope: string]: Partial<T> | ||
} | ||
export type CSS = React.CSSProperties | ||
export function hover<A>(component: React.ComponentClass<A> | React.StatelessComponent<A>): React.ComponentClass<A> | ||
export function loop(i: number, length: number): LoopableProps | ||
export default function reactCSS(classes: Classes, ...activations: Array<any>): any | ||
export function loop(index: number, length: number): LoopableProps | ||
export default function reactCSS<T>(classes: Classes<T>, ...activations: Array<any>): T |
{ | ||
"name": "@types/reactcss", | ||
"version": "1.0.2", | ||
"version": "1.2.0", | ||
"description": "TypeScript definitions for ReactCSS", | ||
"license": "MIT", | ||
"author": "Karol Janyst <https://github.com/LKay>", | ||
"contributors": [ | ||
{ | ||
"name": "Chris Gervang", | ||
"url": "https://github.com/chrisgervang" | ||
}, | ||
{ | ||
"name": "Karol Janyst", | ||
"url": "https://github.com/LKay" | ||
} | ||
], | ||
"main": "", | ||
@@ -17,4 +26,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "8de49c6d70b900b8d22e71451f5fd87ae0067486bdc50e4a31d4fc7b110e4502", | ||
"typeScriptVersion": "2.1" | ||
"typesPublisherContentHash": "77f64469d21cdd998c67b2819cb68ff187cab609467f9dd2125e32e276b0c48a", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 23 Jan 2017 21:31:32 GMT | ||
* Last updated: Mon, 27 Mar 2017 20:43:37 GMT | ||
* Dependencies: react | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Karol Janyst <https://github.com/LKay>. | ||
These definitions were written by Chris Gervang <https://github.com/chrisgervang>, Karol Janyst <https://github.com/LKay>. |
2241
3
24