mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
add @types/react-devtools (#37269)
* create react-devtools type * lint * fixes done after running npm run lint react-devtools
This commit is contained in:
parent
22b8545455
commit
d67df5565a
7
types/react-devtools/index.d.ts
vendored
Normal file
7
types/react-devtools/index.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
// Type definitions for react-devtools 3.6
|
||||
// Project: https://github.com/facebook/react-devtools
|
||||
// Definitions by: Paulo Andrade <https://github.com/prma85>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
export function main(): any;
|
||||
5
types/react-devtools/react-devtools-tests.ts
Normal file
5
types/react-devtools/react-devtools-tests.ts
Normal file
@ -0,0 +1,5 @@
|
||||
async function init() {
|
||||
await import('react-devtools');
|
||||
}
|
||||
|
||||
init();
|
||||
23
types/react-devtools/tsconfig.json
Normal file
23
types/react-devtools/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-devtools-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/react-devtools/tslint.json
Normal file
1
types/react-devtools/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user