fix(types): replace remaining unsafe any with unknown

This commit is contained in:
Muzzaiyyan Hussain
2025-12-17 12:39:59 +05:30
parent 4b64499dd9
commit e5bebfa198
@@ -50,7 +50,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.
*/
@@ -104,16 +104,16 @@ export type AdapterFactoryCustomizeAdapterCreator = (config: {
}) => DBFieldAttribute;
// The following functions are exposed primarily for the purpose of having wrapper adapters.
transformInput: (
data: Record<string, any>,
data: Record<string, unknown>,
defaultModelName: string,
action: "create" | "update",
forceAllowId?: boolean | undefined,
) => Promise<Record<string, any>>;
) => Promise<Record<string, unknown>>;
transformOutput: (
data: Record<string, any>,
data: Record<string, unknown>,
defaultModelName: string,
select?: string[] | undefined,
) => Promise<Record<string, any>>;
) => Promise<Record<string, unknown>>;
transformWhereClause: <W extends Where[] | undefined>({
model,
where,