DefinitelyTyped/types/react-is/tsconfig.json
Avi Vahl 3bd1232485 [react-is] Initial package typings (#25176)
* [react-is] Initial typings for package
React introduced the react-is for assertions on elements and element types.

I took the README and tests and created the matching ts types.

* Add TypeScript 2.6 comment
this package uses @types/react, and it requires 2.6 or above.

* Match strictFunctionTypes config of react

* Remove unneeded generics
per https://github.com/Microsoft/dtslint/blob/master/docs/no-unnecessary-generics.md

React uses this pattern (providing the Props interface via generics) and turned off the linting. We'll use the default lint options and `any` props.

* Use ReactType instead of an explicit union

* Cleanup unused imports
2018-04-21 05:36:06 +12:00

26 lines
537 B
JSON

{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"strictFunctionTypes": false,
"jsx": "preserve"
},
"files": [
"index.d.ts",
"react-is-tests.tsx"
]
}