Save before potential major change

This commit is contained in:
Benjamin Toby
2024-12-06 11:35:59 +01:00
parent 8ca2779741
commit 1ab41929b2
7 changed files with 1508 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
export = getUser;
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/**
* ==============================================================================
* Main Function
* ==============================================================================
* @async
*
* @param {object} params - Single Param object containing params
* @param {String} params.key - API Key
* @param {String} params.database - Target Database
* @param {number} params.userId - user id
* @param {string[]} [params.fields] - fields to select
* @param {boolean} [params.user_id] - User ID
* @param {boolean} [params.useLocal] - Whether to use a remote database instead of API
*
* @returns { Promise<import("../package-shared/types").GetUserFunctionReturn>}
*/
declare function getUser({ key, userId, database, fields, user_id, useLocal }: {
key: string;
database: string;
userId: number;
fields?: string[];
user_id?: boolean;
useLocal?: boolean;
}): Promise<import("../package-shared/types").GetUserFunctionReturn>;