mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Convert definitions to 2.0 style
This commit is contained in:
4
reactcss/index.d.ts
vendored
4
reactcss/index.d.ts
vendored
@@ -3,8 +3,6 @@
|
||||
// Definitions by: Karol Janyst <https://github.com/LKay>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../react/react.d.ts" />
|
||||
|
||||
declare namespace ReactCSS {
|
||||
interface LoopableProps {
|
||||
"first-child"?: boolean
|
||||
@@ -25,8 +23,6 @@ declare namespace ReactCSS {
|
||||
}
|
||||
|
||||
declare module "reactcss" {
|
||||
import React = __React
|
||||
|
||||
export type LoopableProps = ReactCSS.LoopableProps
|
||||
export function hover<A>(component: React.ComponentClass<A> | React.StatelessComponent<A>): React.ComponentClass<A>
|
||||
export function loop(i: number, length: number): ReactCSS.LoopableProps
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
// ReactCSS Test
|
||||
// ================================================================================
|
||||
///<reference path="reactcss.d.ts"/>
|
||||
///<reference path="../react/react.d.ts"/>
|
||||
///<reference path="../react/react-dom.d.ts"/>
|
||||
|
||||
// Imports
|
||||
// --------------------------------------------------------------------------------
|
||||
import * as React from "react"
|
||||
import { StatelessComponent } from "react"
|
||||
import { render } from "react-dom"
|
||||
|
||||
21
reactcss/tsconfig.json
Normal file
21
reactcss/tsconfig.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
||||
"jsx": "react"
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"reactcss-tests.tsx"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user