add @types/react-devtools (#37269)

* create react-devtools type

* lint

* fixes

done after running npm run lint react-devtools
This commit is contained in:
Paulo Andrade 2019-08-01 17:46:42 -06:00 committed by Jesse Trinity
parent 22b8545455
commit d67df5565a
4 changed files with 36 additions and 0 deletions

7
types/react-devtools/index.d.ts vendored Normal file
View 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;

View File

@ -0,0 +1,5 @@
async function init() {
await import('react-devtools');
}
init();

View 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"
]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }