Skip to content

Commit 2496cbe

Browse files
committed
test(@angular-devkit/core): address lint issues
(cherry picked from commit cd000d2)
1 parent d77017d commit 2496cbe

File tree

2 files changed

+3
-5
lines changed
  • goldens/public-api/angular_devkit/core/src
  • packages/angular_devkit/core/src/utils

2 files changed

+3
-5
lines changed

goldens/public-api/angular_devkit/core/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ function dasherize(str: string): string;
354354
function decamelize(str: string): string;
355355

356356
// @public (undocumented)
357-
export function deepCopy<T extends any>(value: T): T;
357+
export function deepCopy<T>(value: T): T;
358358

359359
// @public (undocumented)
360360
export type DeepReadonly<T> = T extends (infer R)[] ? DeepReadonlyArray<R> : T extends Function ? T : T extends object ? DeepReadonlyObject<T> : T;

packages/angular_devkit/core/src/utils/object.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ export function mapObject<T, V>(
2020

2121
const copySymbol = Symbol();
2222

23-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
24-
export function deepCopy<T extends any>(value: T): T {
23+
export function deepCopy<T>(value: T): T {
2524
if (Array.isArray(value)) {
26-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
27-
return (value.map((o: any) => deepCopy(o)) as unknown) as T;
25+
return value.map((o) => deepCopy(o)) as unknown as T;
2826
} else if (value && typeof value === 'object') {
2927
const valueCasted = value as {
3028
[copySymbol]?: T;

0 commit comments

Comments
 (0)