From 625ecc43d0365ab2ee77d8ba51c464a4743385e5 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Wed, 20 Dec 2017 11:11:28 -0800 Subject: [PATCH] is-plain-object: Provides its own types --- notNeededPackages.json | 6 ++ types/is-plain-object/index.d.ts | 10 --- .../is-plain-object/is-plain-object-tests.ts | 23 ------ types/is-plain-object/tsconfig.json | 23 ------ types/is-plain-object/tslint.json | 79 ------------------- 5 files changed, 6 insertions(+), 135 deletions(-) delete mode 100644 types/is-plain-object/index.d.ts delete mode 100644 types/is-plain-object/is-plain-object-tests.ts delete mode 100644 types/is-plain-object/tsconfig.json delete mode 100644 types/is-plain-object/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index ce5c997b8e..42172b3c05 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -336,6 +336,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/is-lower-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "is-plain-object", + "typingsPackageName": "is-plain-object", + "sourceRepoURL": "https://github.com/jonschlinkert/is-plain-object", + "asOfVersion": "2.0.4" + }, { "libraryName": "is-upper-case", "typingsPackageName": "is-upper-case", diff --git a/types/is-plain-object/index.d.ts b/types/is-plain-object/index.d.ts deleted file mode 100644 index 79ad3cf63a..0000000000 --- a/types/is-plain-object/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Type definitions for is-plain-object -// Project: https://github.com/jonschlinkert/is-plain-object -// Definitions by: Kevin Zeng -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare module "is-plain-object" { - namespace isPlainObject {} - function isPlainObject(obj: any): boolean; - export = isPlainObject; -} \ No newline at end of file diff --git a/types/is-plain-object/is-plain-object-tests.ts b/types/is-plain-object/is-plain-object-tests.ts deleted file mode 100644 index be9470939d..0000000000 --- a/types/is-plain-object/is-plain-object-tests.ts +++ /dev/null @@ -1,23 +0,0 @@ -import * as isPlainObject from 'is-plain-object'; - -isPlainObject(Object.create({})); -//=> true -isPlainObject(Object.create(Object.prototype)); -//=> true -isPlainObject({foo: 'bar'}); -//=> true -isPlainObject({}); - -isPlainObject(1); -//=> false -isPlainObject(['foo', 'bar']); -//=> false -isPlainObject([]); -//=> false -class Foo {} -isPlainObject(new Foo); -//=> false -isPlainObject(null); -//=> false -isPlainObject(Object.create(null)); -//=> false \ No newline at end of file diff --git a/types/is-plain-object/tsconfig.json b/types/is-plain-object/tsconfig.json deleted file mode 100644 index 1522dc4f0e..0000000000 --- a/types/is-plain-object/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "is-plain-object-tests.ts" - ] -} \ No newline at end of file diff --git a/types/is-plain-object/tslint.json b/types/is-plain-object/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/is-plain-object/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 - } -}