32 lines
1.5 KiB
TypeScript
32 lines
1.5 KiB
TypeScript
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>;
|