datasquirel/users/update-user.d.ts
Benjamin Toby c49513c189 Updates
2024-12-06 11:44:26 +01:00

24 lines
696 B
TypeScript

export = updateUser;
/**
* # Update User
* @async
*
* @param {object} params - API Key
* @param {String} params.key - API Key
* @param {String} params.database - Target Database
* @param {{ id: number } & Object.<string, any>} params.payload - User Object: ID is required
* @param {boolean} [params.user_id] - User ID
*
* @returns { Promise<import("../package-shared/types").UpdateUserFunctionReturn>}
*/
declare function updateUser({ key, payload, database, user_id }: {
key: string;
database: string;
payload: {
id: number;
} & {
[x: string]: any;
};
user_id?: boolean;
}): Promise<import("../package-shared/types").UpdateUserFunctionReturn>;