From 4e14bf86da0b276134e006cc891cb0e355a81aa1 Mon Sep 17 00:00:00 2001 From: Stivenjs Date: Fri, 9 May 2025 22:17:26 -0500 Subject: [PATCH] refactor: replace `unknown[]` with `any[]` for `identities` type The change simplifies the type definition for `identities` in both `UserPayload` and `User` interfaces by replacing `unknown[]` with `any[]`. This improves maintainability and reduces complexity while maintaining the same functionality. --- context/core/userStore.ts | 2 +- hooks/auth/useAuthUser.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/context/core/userStore.ts b/context/core/userStore.ts index 8edeb424..d75e4b86 100644 --- a/context/core/userStore.ts +++ b/context/core/userStore.ts @@ -11,7 +11,7 @@ interface User { phone?: string cognitoUsername?: string userId?: string - identities?: unknown[] + identities?: any[] } // Define el estado y las acciones del store diff --git a/hooks/auth/useAuthUser.ts b/hooks/auth/useAuthUser.ts index 8d22fd40..b040599b 100644 --- a/hooks/auth/useAuthUser.ts +++ b/hooks/auth/useAuthUser.ts @@ -11,7 +11,7 @@ interface UserPayload { userId: string plan?: string picture?: string - identities?: unknown[] + identities?: any[] [key: string]: any }