From b025ee5a69238da11e30c2df26a4f1882a59d978 Mon Sep 17 00:00:00 2001 From: Jack Bates Date: Sun, 15 May 2022 07:53:51 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#60146=20[deep-assi?= =?UTF-8?q?gn]=20=F0=9F=8C=87=20Deprecated=20npm=20package=20by=20@jablko?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/deep-assign/deep-assign-tests.ts | 10 ---- types/deep-assign/index.d.ts | 77 -------------------------- types/deep-assign/tsconfig.json | 23 -------- types/deep-assign/tslint.json | 6 -- 4 files changed, 116 deletions(-) delete mode 100644 types/deep-assign/deep-assign-tests.ts delete mode 100644 types/deep-assign/index.d.ts delete mode 100644 types/deep-assign/tsconfig.json delete mode 100644 types/deep-assign/tslint.json diff --git a/types/deep-assign/deep-assign-tests.ts b/types/deep-assign/deep-assign-tests.ts deleted file mode 100644 index f38a1fc3789674..00000000000000 --- a/types/deep-assign/deep-assign-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -import * as deepAssign from 'deep-assign'; - -deepAssign({a: 1}); -deepAssign({a: 1}, {b: 2}); -deepAssign({a: 1, b: {c: 2}}, {b: {e: 33}, x: 11}); -deepAssign({}, {a: 1}, {b: 2}, {c: 3}); -deepAssign({}, {a: 1}, {b: 2}, {c: 3}, {d: 4}); -deepAssign({}, {a: 1}, {b: 2}, {c: 3}, {d: 4}, {e: 5}); -deepAssign({}, {a: 1}, {b: 2}, {c: 3}, {d: 4}, {e: 5}, {f: 6}); -deepAssign({}, {a: 1}, {b: 2}, {c: 3}, {d: 4}, {e: 5}, {f: 6}, {g: 7}); diff --git a/types/deep-assign/index.d.ts b/types/deep-assign/index.d.ts deleted file mode 100644 index e03eb76323c295..00000000000000 --- a/types/deep-assign/index.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -// Type definitions for deep-assign 0.1 -// Project: https://github.com/sindresorhus/deep-assign -// Definitions by: Ionut Costica -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** - * Pretty much just returns the target object - * @param target Base object - */ -declare function deepAssign(target: T): T; -/** - * Deeply assigns all the properties of the source object to the - * target object - * @param target Base object - * @param source Extending object - */ -declare function deepAssign(target: T, source: U): T & U; -/** - * Deeply assigns all the properties of the source objects to the - * target object - * @param target Base object - * @param source1 First extending object - * @param source2 Second extending object - */ -declare function deepAssign(target: T, source1: U, source2: V): T & U & V; -/** - * Deeply assigns all the properties of the source objects to the - * target object - * @param target Base object - * @param source1 First extending object - * @param source2 Second extending object - * @param source3 Third extending object - */ -declare function deepAssign(target: T, source1: U, source2: V, source3: W): T & U & V & W; -/** - * Deeply assigns all the properties of the source objects to the - * target object - * @param target Base object - * @param source1 First extending object - * @param source2 Second extending object - * @param source3 Third extending object - * @param source4 Fourth extending object - */ -declare function deepAssign(target: T, source1: U, source2: V, source3: W, source4: X): T & U & V & W & X; -/** - * Deeply assigns all the properties of the source objects to the - * target object - * @param target Base object - * @param source1 First extending object - * @param source2 Second extending object - * @param source3 Third extending object - * @param source4 Fourth extending object - * @param source5 Fifth extending object - */ -declare function deepAssign(target: T, source1: U, source2: V, source3: W, source4: X, source5: Y): T & U & V & W & X & Y; -/** - * Deeply assigns all the properties of the source objects to the - * target object - * @param target Base object - * @param source1 First extending object - * @param source2 Second extending object - * @param source3 Third extending object - * @param source4 Fourth extending object - * @param source5 Fifth extending object - * @param source6 Sixth extending object - */ -declare function deepAssign(target: T, source1: U, source2: V, source3: W, source4: X, source5: Y, source6: Z): T & U & V & W & X & Y & Z; -/** - * Deeply assigns all the properties of the source objects to the - * target object - * @param target Base object - * @param sources Extending objects - */ -declare function deepAssign(target: any, ...sources: any[]): any; - -declare namespace deepAssign {} -export = deepAssign; diff --git a/types/deep-assign/tsconfig.json b/types/deep-assign/tsconfig.json deleted file mode 100644 index 0ed317f9ca9c1d..00000000000000 --- a/types/deep-assign/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "deep-assign-tests.ts" - ] -} diff --git a/types/deep-assign/tslint.json b/types/deep-assign/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/deep-assign/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -}