From 1010192e4a7106bfccca02c5fda312adc5ac0593 Mon Sep 17 00:00:00 2001 From: Muzzaiyyan Hussain Date: Wed, 17 Dec 2025 13:41:53 +0530 Subject: [PATCH] chore: replace unsafe `any` in adapter factory types (#6819) --- packages/core/src/db/adapter/types.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core/src/db/adapter/types.ts b/packages/core/src/db/adapter/types.ts index 7f0b1452c9..083a4c7234 100644 --- a/packages/core/src/db/adapter/types.ts +++ b/packages/core/src/db/adapter/types.ts @@ -43,7 +43,7 @@ export type AdapterFactoryCustomizeAdapterCreator = (config: { * * If the config has defined `debugLogs` as `false`, no logs will be shown. */ - debugLog: (...args: any[]) => void; + debugLog: (...args: unknown[]) => void; /** * Get the model name which is expected to be saved in the database based on the user's schema. */ @@ -97,17 +97,17 @@ export type AdapterFactoryCustomizeAdapterCreator = (config: { }) => DBFieldAttribute; // The following functions are exposed primarily for the purpose of having wrapper adapters. transformInput: ( - data: Record, + data: Record, defaultModelName: string, action: "create" | "update", forceAllowId?: boolean | undefined, - ) => Promise>; + ) => Promise>; transformOutput: ( - data: Record, + data: Record, defaultModelName: string, select?: string[] | undefined, joinConfig?: JoinConfig | undefined, - ) => Promise>; + ) => Promise>; transformWhereClause: ({ model, where,