File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
goldens/public-api/angular_devkit/core/src
packages/angular_devkit/core/src/utils Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ function dasherize(str: string): string;
354
354
function decamelize(str : string ): string ;
355
355
356
356
// @public (undocumented)
357
- export function deepCopy<T extends any >(value : T ): T ;
357
+ export function deepCopy<T >(value : T ): T ;
358
358
359
359
// @public (undocumented)
360
360
export type DeepReadonly <T > = T extends (infer R )[] ? DeepReadonlyArray <R > : T extends Function ? T : T extends object ? DeepReadonlyObject <T > : T ;
Original file line number Diff line number Diff line change @@ -20,11 +20,9 @@ export function mapObject<T, V>(
20
20
21
21
const copySymbol = Symbol ( ) ;
22
22
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 {
25
24
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 ;
28
26
} else if ( value && typeof value === 'object' ) {
29
27
const valueCasted = value as {
30
28
[ copySymbol ] ?: T ;
You can’t perform that action at this time.
0 commit comments