26 lines
768 B
TypeScript
26 lines
768 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
|
|
* @param {boolean} [params.useLocal]
|
|
*
|
|
* @returns { Promise<import("../package-shared/types").UpdateUserFunctionReturn>}
|
|
*/
|
|
declare function updateUser({ key, payload, database, user_id, useLocal }: {
|
|
key: string;
|
|
database: string;
|
|
payload: {
|
|
id: number;
|
|
} & {
|
|
[x: string]: any;
|
|
};
|
|
user_id?: boolean;
|
|
useLocal?: boolean;
|
|
}): Promise<import("../package-shared/types").UpdateUserFunctionReturn>;
|