diff --git a/packages/router/test/operators/resolve_data.spec.ts b/packages/router/test/operators/resolve_data.spec.ts index fb76e7ea85..aa8ced9690 100644 --- a/packages/router/test/operators/resolve_data.spec.ts +++ b/packages/router/test/operators/resolve_data.spec.ts @@ -97,6 +97,6 @@ function createTransition(...resolvers: {[key: string]: string}[]) { }; } -function deepClone(obj: any) { - return JSON.parse(JSON.stringify(obj)); +function deepClone(obj: T): T { + return JSON.parse(JSON.stringify(obj)) as T; }