DefinitelyTyped/reactcss/index.d.ts
Mohamed Hegazy 66d12d9ada Fix failing packages (#13624)
* Use correct cases for type reference

* Add missing dependency on jquery

* Switch to module and add tslint

* Fix failing test

* Fix triple-slash reference

* Remove reference to `__React`

* Add import for react-native

* Add missing react import

* Switch to module

* Switch to module, add react import

* Make sure test is resilient to lib changes
2016-12-29 19:26:32 -08:00

29 lines
759 B
TypeScript

// Type definitions for ReactCSS v1.0.0
// Project: http://reactcss.com/
// Definitions by: Karol Janyst <https://github.com/LKay>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as React from "react"
interface LoopableProps {
"first-child"?: boolean
"last-child"?: boolean
even?: boolean
odd?: boolean
[nthChild: string]: boolean
}
interface HoverProps {
hover?: boolean
}
interface Classes {
default: any
[scope: string]: any
}
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