mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix build failure in new testing framework
This commit is contained in:
parent
00c4f8e152
commit
fe9ddf224e
19
paper/tsconfig.json
Normal file
19
paper/tsconfig.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"paper-tests.ts"
|
||||
]
|
||||
}
|
||||
6
react-onclickoutside/index.d.ts
vendored
6
react-onclickoutside/index.d.ts
vendored
@ -3,13 +3,11 @@
|
||||
// Definitions by: Karol Janyst <https://github.com/LKay>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
///<reference path='../react/react.d.ts' />
|
||||
import * as React from "react"
|
||||
|
||||
declare namespace ReactOnClickOutside {
|
||||
import React = __React
|
||||
|
||||
interface OnClickOutsideComponent {
|
||||
handleClickOutside(e: React.MouseEvent): void
|
||||
handleClickOutside(e: React.MouseEvent<any>): void
|
||||
}
|
||||
|
||||
interface OnClickOutsideProps {
|
||||
|
||||
@ -16,7 +16,7 @@ var TestStateless: StatelessComponent<TestProps> = (props: TestProps) => {
|
||||
var TestStatelessWrapped = onClickOutside(TestStateless)
|
||||
|
||||
class Test extends Component<TestProps, any> implements ReactOnClickOutside.OnClickOutsideComponent {
|
||||
handleClickOutside (e: MouseEvent) {}
|
||||
handleClickOutside (e: MouseEvent<any>) {}
|
||||
|
||||
render () {
|
||||
return (<div>Test</div>)
|
||||
|
||||
20
react-onclickoutside/tsconfig.json
Normal file
20
react-onclickoutside/tsconfig.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"jsx": "react"
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-onclickoutside-tests.tsx"
|
||||
]
|
||||
}
|
||||
15
react-redux-i18n/index.d.ts
vendored
15
react-redux-i18n/index.d.ts
vendored
@ -3,12 +3,9 @@
|
||||
// Definitions by: Clément Devos <https://github.com/clementdevos>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
///<reference path="../react/react.d.ts" />
|
||||
///<reference path="../redux/redux.d.ts" />
|
||||
|
||||
declare module 'react-redux-i18n' {
|
||||
import R = __React;
|
||||
import _Redux = Redux;
|
||||
import * as react from "react"
|
||||
import * as redux from "redux"
|
||||
|
||||
/**
|
||||
* Helper methods
|
||||
@ -42,18 +39,18 @@ declare module 'react-redux-i18n' {
|
||||
/**
|
||||
* React components
|
||||
*/
|
||||
export class Translate extends R.Component<TranslateProps, any>{ }
|
||||
export class Localize extends R.Component<LocalizeProps, any>{ }
|
||||
export class Translate extends react.Component<TranslateProps, any>{ }
|
||||
export class Localize extends react.Component<LocalizeProps, any>{ }
|
||||
|
||||
/**
|
||||
* Reducer
|
||||
*/
|
||||
export function i18nReducer(state?: any, options?: any): _Redux.Reducer<I18nState>;
|
||||
export function i18nReducer(state?: any, options?: any): redux.Reducer<I18nState>;
|
||||
|
||||
/**
|
||||
* Reducer init
|
||||
*/
|
||||
export function syncTranslationWithStore(store: _Redux.Store<any>): void;
|
||||
export function syncTranslationWithStore(store: redux.Store<any>): void;
|
||||
|
||||
/**
|
||||
* Redux Actions
|
||||
|
||||
20
react-redux-i18n/tsconfig.json
Normal file
20
react-redux-i18n/tsconfig.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"jsx": "react"
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-redux-i18n-tests.tsx"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user