diff --git a/types/react-devtools/index.d.ts b/types/react-devtools/index.d.ts new file mode 100644 index 0000000000..1985c0aa72 --- /dev/null +++ b/types/react-devtools/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for react-devtools 3.6 +// Project: https://github.com/facebook/react-devtools +// Definitions by: Paulo Andrade +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +export function main(): any; diff --git a/types/react-devtools/react-devtools-tests.ts b/types/react-devtools/react-devtools-tests.ts new file mode 100644 index 0000000000..885508b5ca --- /dev/null +++ b/types/react-devtools/react-devtools-tests.ts @@ -0,0 +1,5 @@ +async function init() { + await import('react-devtools'); +} + +init(); diff --git a/types/react-devtools/tsconfig.json b/types/react-devtools/tsconfig.json new file mode 100644 index 0000000000..15c5759a9e --- /dev/null +++ b/types/react-devtools/tsconfig.json @@ -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" + ] +} \ No newline at end of file diff --git a/types/react-devtools/tslint.json b/types/react-devtools/tslint.json new file mode 100644 index 0000000000..2750cc0197 --- /dev/null +++ b/types/react-devtools/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file