1.2.12 • Published 2 months ago

@types/reactcss v1.2.12

Weekly downloads
1,106,238
License
MIT
Repository
github
Last release
2 months ago

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: Thu, 21 Oct 2021 23:01:45 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Chris Gervang, and Karol Janyst.

1.2.12

2 months ago

1.2.11

4 months ago

1.2.8

6 months ago

1.2.7

7 months ago

1.2.9

6 months ago

1.2.10

5 months ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago