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;
354354function 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)
360360export 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>(
2020
2121const 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 ;
You can’t perform that action at this time.
0 commit comments