From 5befd021c25eea46dd1e164e77c70672467e74fa Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 28 Feb 2018 12:17:33 -0800 Subject: [PATCH] angular-touchspin: Provides its own types (#23878) --- notNeededPackages.json | 6 ++ .../angular-touchspin-tests.ts | 29 ------- types/angular-touchspin/index.d.ts | 43 ---------- types/angular-touchspin/tsconfig.json | 24 ------ types/angular-touchspin/tslint.json | 79 ------------------- 5 files changed, 6 insertions(+), 175 deletions(-) delete mode 100644 types/angular-touchspin/angular-touchspin-tests.ts delete mode 100644 types/angular-touchspin/index.d.ts delete mode 100644 types/angular-touchspin/tsconfig.json delete mode 100644 types/angular-touchspin/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 3abaa12d26..a3423d479c 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -24,6 +24,12 @@ "sourceRepoURL": "https://github.com/epoberezkin/ajv", "asOfVersion": "1.0.0" }, + { + "libraryName": "angular-touchspin", + "typingsPackageName": "angular-touchspin", + "sourceRepoURL": "https://github.com/nkovacic/angular-touchspin", + "asOfVersion": "1.8.2" + }, { "libraryName": "angular-ui-router-default", "typingsPackageName": "angular-ui-router-default", diff --git a/types/angular-touchspin/angular-touchspin-tests.ts b/types/angular-touchspin/angular-touchspin-tests.ts deleted file mode 100644 index 32396365d9..0000000000 --- a/types/angular-touchspin/angular-touchspin-tests.ts +++ /dev/null @@ -1,29 +0,0 @@ -import angularTouchSpin = require("angular-touchspin"); -import * as angular from 'angular'; - -angular - .module('touchspin-tests', ['nk.touchspin']) - .config(function(touchspinConfigProvider: angular.touchspin.ITouchSpinConfigProvider) { - touchspinConfigProvider.defaults({ - min: 0, - max: 0, - step: 0, - decimals: 0, - stepInterval: 0, - forceStepDivisibility: '', // none | floor | round | ceil - stepIntervalDelay: 0, - verticalButtons: true, - verticalUpClass: '', - verticalDownClass: '', - initVal: 0, - prefix: '', - postfix: '', - prefixExtraClass: '', - postfixExtraClass: '', - mousewheel: true, - buttonDownClass: '', - buttonUpClass: '', - buttonDownTxt: '', - buttonUpTxt: '' - }); - }); diff --git a/types/angular-touchspin/index.d.ts b/types/angular-touchspin/index.d.ts deleted file mode 100644 index 305a033275..0000000000 --- a/types/angular-touchspin/index.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Type definitions for Angular Touchspin v1.0.0 -// Project: https://github.com/nkovacic/angular-touchspin -// Definitions by: Niko Kovačič -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -/// - -declare let angularTouchSpin: string; -export = angularTouchSpin; - -declare module "angular" { - namespace touchspin { - interface ITouchSpinOptions { - min?: number; - max?: number; - step?: number; - decimals?: number; - stepInterval?: number; - forceStepDivisibility?: string; // none | floor | round | ceil - stepIntervalDelay?: number; - verticalButtons?: boolean; - verticalUpClass?: string; - verticalDownClass?: string; - initVal?: number; - prefix?: string; - postfix?: string; - prefixExtraClass?: string; - postfixExtraClass?: string; - mousewheel?: boolean; - buttonDownClass?: string; - buttonUpClass?: string; - buttonDownTxt?: string; - buttonUpTxt?: string; - } - - interface ITouchSpinConfig extends ITouchSpinOptions { } - - interface ITouchSpinConfigProvider { - defaults(touchSpinOptions: ITouchSpinOptions): void; - } - } -} diff --git a/types/angular-touchspin/tsconfig.json b/types/angular-touchspin/tsconfig.json deleted file mode 100644 index 8c3d5338c4..0000000000 --- a/types/angular-touchspin/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "angular-touchspin-tests.ts" - ] -} \ No newline at end of file diff --git a/types/angular-touchspin/tslint.json b/types/angular-touchspin/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/angular-touchspin/tslint.json +++ /dev/null @@ -1,79 +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, - "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 - } -}