From 7936f4d5887967e439fc686fb3b2ff338cdd37a4 Mon Sep 17 00:00:00 2001 From: Alexander T Date: Thu, 7 Nov 2019 00:01:38 +0200 Subject: [PATCH] react-json-pretty: Provides its own types (#39512) --- notNeededPackages.json | 6 +++++ types/react-json-pretty/index.d.ts | 23 ---------------- .../react-json-pretty-tests.tsx | 24 ----------------- types/react-json-pretty/tsconfig.json | 26 ------------------- types/react-json-pretty/tslint.json | 1 - 5 files changed, 6 insertions(+), 74 deletions(-) delete mode 100644 types/react-json-pretty/index.d.ts delete mode 100644 types/react-json-pretty/react-json-pretty-tests.tsx delete mode 100644 types/react-json-pretty/tsconfig.json delete mode 100644 types/react-json-pretty/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index a03eae70a3..af9c9703a4 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -3666,6 +3666,12 @@ "sourceRepoURL": "https://github.com/formatjs/react-intl", "asOfVersion": "3.0.0" }, + { + "libraryName": "react-json-pretty", + "typingsPackageName": "react-json-pretty", + "sourceRepoURL": "https://github.com/chenckang/react-json-pretty", + "asOfVersion": "2.2.0" + }, { "libraryName": "react-joyride", "typingsPackageName": "react-joyride", diff --git a/types/react-json-pretty/index.d.ts b/types/react-json-pretty/index.d.ts deleted file mode 100644 index 3690e9d4bf..0000000000 --- a/types/react-json-pretty/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Type definitions for react-json-pretty 1.7 -// Project: https://github.com/chenckang/react-json-pretty -// Definitions by: Karol Janyst -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 - -import { ComponentClass, HTMLAttributes } from 'react'; - -export as namespace JSONPretty; - -export = JSONPretty; - -declare const JSONPretty: JSONPretty; -type JSONPretty = ComponentClass; - -declare namespace JSONPretty { - interface JSONPrettyProps extends HTMLAttributes { - json: any; - replacer?(this: any, key: string, value: any): any; - space?: number; - themeClassName?: string; - } -} diff --git a/types/react-json-pretty/react-json-pretty-tests.tsx b/types/react-json-pretty/react-json-pretty-tests.tsx deleted file mode 100644 index 568f740635..0000000000 --- a/types/react-json-pretty/react-json-pretty-tests.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import * as React from "react"; -import JSONPretty = require("react-json-pretty"); - -export class Test extends React.Component { - render() { - const json = { - foo: "bar" - }; - - const fn = (key: string, value: any) => { - return value; - }; - - return ( -
- - - - - -
- ); - } -} diff --git a/types/react-json-pretty/tsconfig.json b/types/react-json-pretty/tsconfig.json deleted file mode 100644 index 17b15160c6..0000000000 --- a/types/react-json-pretty/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "target": "es6", - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "jsx": "preserve", - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "react-json-pretty-tests.tsx" - ] -} \ No newline at end of file diff --git a/types/react-json-pretty/tslint.json b/types/react-json-pretty/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/react-json-pretty/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }