Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/reactcss) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installation
npm install --save @types/reactcss
Summary
This package contains type definitions for ReactCSS (http://reactcss.com/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reactcss.
index.d.ts
// Type definitions for ReactCSS 1.2.0
// Project: http://reactcss.com/
// Definitions by: Chris Gervang <https://github.com/chrisgervang>, Karol Janyst <https://github.com/LKay>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
interface LoopableProps {
children?: React.ReactNode;
ref?: React.LegacyRef<any> | undefined;
"nth-child": number;
"first-child"?: boolean | undefined;
"last-child"?: boolean | undefined;
even?: boolean | undefined;
odd?: boolean | undefined;
}
interface HoverProps<T> {
children?: React.ReactNode;
ref?: React.LegacyRef<T> | undefined;
hover?: boolean | undefined;
}
interface Classes<T> {
default: Partial<T>;
[scope: string]: Partial<T>;
}
export type CSS = React.CSSProperties;
export function hover<A>(component: React.ComponentClass<A> | React.FunctionComponent<A>): React.ComponentClass<A>;
export function loop(index: number, length: number): LoopableProps;
export default function reactCSS<T>(classes: Classes<T>, ...activations: Array<any>): T;
Additional Details
- Last updated: Wed, 27 Sep 2023 07:12:04 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Chris Gervang, and Karol Janyst.