From 513c01fa4237b4c9155e6ca398f4d0c2dce039aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mester=20Pirttij=C3=A4rvi?= Date: Fri, 19 Jul 2019 18:07:51 +0200 Subject: [PATCH] [jdenticon] Remove types (#36878) --- notNeededPackages.json | 6 +++ types/jdenticon/index.d.ts | 26 ---------- types/jdenticon/jdenticon-tests.ts | 11 ---- types/jdenticon/tsconfig.json | 24 --------- types/jdenticon/tslint.json | 80 ------------------------------ 5 files changed, 6 insertions(+), 141 deletions(-) delete mode 100644 types/jdenticon/index.d.ts delete mode 100644 types/jdenticon/jdenticon-tests.ts delete mode 100644 types/jdenticon/tsconfig.json delete mode 100644 types/jdenticon/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 21e2ee0bc6..889ca7e415 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1686,6 +1686,12 @@ "sourceRepoURL": "https://github.com/JamieMason/Jasmine-Matchers", "asOfVersion": "3.8.1" }, + { + "libraryName": "jdenticon", + "typingsPackageName": "jdenticon", + "sourceRepoURL": "https://github.com/dmester/jdenticon", + "asOfVersion": "2.2.0" + }, { "libraryName": "jimp", "typingsPackageName": "jimp", diff --git a/types/jdenticon/index.d.ts b/types/jdenticon/index.d.ts deleted file mode 100644 index 84768ccf03..0000000000 --- a/types/jdenticon/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Type definitions for Jdenticon 1.3.2 -// Project: http://jdenticon.com/ -// Definitions by: Martin Thorsen Ranang -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export interface JdenticonConfig { - lightness?: { - color?: number[]; - grayscale?: number[]; - }; - saturation?: number; -} - -export var jdenticon_config: JdenticonConfig; - -export namespace jdenticon { - export function drawIcon(ctx: CanvasRenderingContext2D, hash: string, size: number): void; - - export function toSvg(hash: string, size: number, padding?: number): string; - - export function update(el: Element|string, hash?: string, padding?: number): void; - - export let config: JdenticonConfig; - - export const version: string; -} diff --git a/types/jdenticon/jdenticon-tests.ts b/types/jdenticon/jdenticon-tests.ts deleted file mode 100644 index aaa5abc531..0000000000 --- a/types/jdenticon/jdenticon-tests.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { jdenticon } from "jdenticon"; - -function testJdenticon() { - if (typeof jdenticon.version !== 'string') { - throw '.version should be of string type.'; - } - - jdenticon.update('#jdenticon', 'd6d7705392bc7af633328bea8c4c6904', 8); -} - -testJdenticon(); diff --git a/types/jdenticon/tsconfig.json b/types/jdenticon/tsconfig.json deleted file mode 100644 index cb462ee4d6..0000000000 --- a/types/jdenticon/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "jdenticon-tests.ts" - ] -} \ No newline at end of file diff --git a/types/jdenticon/tslint.json b/types/jdenticon/tslint.json deleted file mode 100644 index 3d59f55fda..0000000000 --- a/types/jdenticon/tslint.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "npm-naming": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -}