diff --git a/notNeededPackages.json b/notNeededPackages.json index c92266c335..3fb43da2c0 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -684,6 +684,12 @@ "sourceRepoURL": "https://github.com/marcusdb/microgears", "asOfVersion": "4.0.5" }, + { + "libraryName": "mobile-detect", + "typingsPackageName": "mobile-detect", + "sourceRepoURL": "http://hgoebl.github.io/mobile-detect.js/", + "asOfVersion": "1.3.4" + }, { "libraryName": "mobservable", "typingsPackageName": "mobservable", diff --git a/types/mobile-detect/index.d.ts b/types/mobile-detect/index.d.ts deleted file mode 100644 index 61bde9d853..0000000000 --- a/types/mobile-detect/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Type definitions for mobile-detect v1.2.0 -// Project: http://hgoebl.github.io/mobile-detect.js/ -// Definitions by: Martin McWhorter -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare class MobileDetect { - - constructor(userAgent: string, maxPhoneWidth?: number); - - is(key: string): boolean; - match(pattern: string|RegExp): boolean; - mobile(): string; - mobileGrade(): string; - os(): string; - phone(): string; - tablet(): string; - userAgent(): string; - version(value: string): number; - versionStr(value: string): string; -} - -export = MobileDetect; -export as namespace MobileDetect; \ No newline at end of file diff --git a/types/mobile-detect/mobile-detect-tests.ts b/types/mobile-detect/mobile-detect-tests.ts deleted file mode 100644 index 7a3e814612..0000000000 --- a/types/mobile-detect/mobile-detect-tests.ts +++ /dev/null @@ -1,14 +0,0 @@ - - -var md: MobileDetect = new MobileDetect(window.navigator.userAgent); - -var mobie: string = md.mobile() -var phone: string = md.phone() -var tablet: string = md.tablet() -var userAgent: string = md.userAgent() -var os: string = md.os() -var isPhone: boolean = md.is('iPhone') -var bot: boolean = md.is('bot') -var version: number = md.version('Webkit') -var versionStr: string = md.versionStr('Build') -var match: boolean = md.match('playstation|xbox') \ No newline at end of file diff --git a/types/mobile-detect/tsconfig.json b/types/mobile-detect/tsconfig.json deleted file mode 100644 index d728b72f0e..0000000000 --- a/types/mobile-detect/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", - "mobile-detect-tests.ts" - ] -} \ No newline at end of file diff --git a/types/mobile-detect/tslint.json b/types/mobile-detect/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/mobile-detect/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 - } -}