datasquirel/users/update-user.d.ts

26 lines
768 B
TypeScript
Raw Normal View History

2024-11-08 15:44:31 +00:00
export = updateUser;
/**
2024-12-06 10:44:26 +00:00
* # Update User
2024-11-08 15:44:31 +00:00
* @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
2024-12-06 10:44:26 +00:00
* @param {boolean} [params.user_id] - User ID
2024-12-06 11:55:03 +00:00
* @param {boolean} [params.useLocal]
2024-11-08 15:44:31 +00:00
*
* @returns { Promise<import("../package-shared/types").UpdateUserFunctionReturn>}
*/
2024-12-06 11:55:03 +00:00
declare function updateUser({ key, payload, database, user_id, useLocal }: {
2024-11-08 15:44:31 +00:00
key: string;
database: string;
payload: {
id: number;
} & {
[x: string]: any;
};
2024-12-06 10:44:26 +00:00
user_id?: boolean;
2024-12-06 11:55:03 +00:00
useLocal?: boolean;
2024-11-08 15:44:31 +00:00
}): Promise<import("../package-shared/types").UpdateUserFunctionReturn>;