diff --git a/notNeededPackages.json b/notNeededPackages.json index a0984f2b4c..5a6d241343 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -3090,6 +3090,12 @@ "sourceRepoURL": "https://www.npmjs.com/package/react-icons", "asOfVersion": "3.0.0" }, + { + "libraryName": "react-inlinesvg", + "typingsPackageName": "react-inlinesvg", + "sourceRepoURL": "https://github.com/gilbarbara/react-inlinesvg#readme", + "asOfVersion": "1.0.0" + }, { "libraryName": "react-intl", "typingsPackageName": "react-intl", diff --git a/types/react-inlinesvg/index.d.ts b/types/react-inlinesvg/index.d.ts deleted file mode 100644 index 2dde329572..0000000000 --- a/types/react-inlinesvg/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -// Type definitions for react-inlinesvg 0.8 -// Project: https://github.com/gilbarbara/react-inlinesvg#readme -// Definitions by: MyCrypto , Nick -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 - -import { ComponentType, ReactNode } from 'react'; - -export interface RequestError extends Error { - isHttpError: boolean; - status: number; -} - -export interface InlineSVGError extends Error { - name: 'InlineSVGError'; - isSupportedBrowser: boolean; - isConfigurationError: boolean; - isUnsupportedBrowserError: boolean; - message: string; -} - -export interface Props { - baseURL?: string; - cacheGetRequests?: boolean; - children?: ReactNode; - className?: string; - preloader?: ReactNode; - src: URL | string; - style?: object; - uniqueHash?: string; - uniquifyIDs?: boolean; - onError?(error: RequestError | InlineSVGError): void; - onLoad?(src: URL | string, isCached: boolean): void; - processSVG?(svgText: string): string; - supportTest?(): void; - wrapper?(): ReactNode; -} - -declare const InlineSVG: ComponentType; -export default InlineSVG; diff --git a/types/react-inlinesvg/react-inlinesvg-tests.tsx b/types/react-inlinesvg/react-inlinesvg-tests.tsx deleted file mode 100644 index a7d90e0d86..0000000000 --- a/types/react-inlinesvg/react-inlinesvg-tests.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import * as React from "react"; -import SVG from 'react-inlinesvg'; - -function Loader() { - return null; -} - -function myOnLoadHandler(src: string | URL) { -} - -} - onLoad={(src) => { - myOnLoadHandler(src); - }} -> - -; diff --git a/types/react-inlinesvg/tsconfig.json b/types/react-inlinesvg/tsconfig.json deleted file mode 100644 index c68bc64bac..0000000000 --- a/types/react-inlinesvg/tsconfig.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "dom", - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "jsx": "react", - "strictFunctionTypes": true - }, - "files": [ - "index.d.ts", - "react-inlinesvg-tests.tsx" - ] -} diff --git a/types/react-inlinesvg/tslint.json b/types/react-inlinesvg/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/react-inlinesvg/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }