mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-18 11:32:15 -05:00
fix(types): replace remaining unsafe any with unknown
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user