Update types

This commit is contained in:
Benjamin Toby 2024-10-24 08:08:22 +01:00
parent 1b6504ab93
commit d81f38809b
3 changed files with 14 additions and 4 deletions

View File

@ -271,13 +271,15 @@ export interface GoogleIdentityPromptNotification {
isSkippedMoment: () => boolean; isSkippedMoment: () => boolean;
} }
export interface UserDataPayload { export type UserDataPayload = {
first_name: string; first_name: string;
last_name: string; last_name: string;
email: string; email: string;
password: string; password: string;
username: string; username: string;
} } & {
[key: string]: any;
};
export interface GetUserFunctionReturn { export interface GetUserFunctionReturn {
success: boolean; success: boolean;

View File

@ -305,7 +305,11 @@ const http = require("http");
*/ */
/** /**
* @typedef {object} UserDataPayload * @typedef {UserDataPayloadBase & UserDataPayloadSupplement} UserDataPayload
*/
/**
* @typedef {object} UserDataPayloadBase
* @property {string} first_name - First Name *Required * @property {string} first_name - First Name *Required
* @property {string} last_name - Last Name *Required * @property {string} last_name - Last Name *Required
* @property {string} email - Email *Required * @property {string} email - Email *Required
@ -313,6 +317,10 @@ const http = require("http");
* @property {string} username - Username (Optional) * @property {string} username - Username (Optional)
*/ */
/**
* @typedef {Object.<string, any>} UserDataPayloadSupplement
*/
/** /**
* @typedef {object} GetUserFunctionReturn * @typedef {object} GetUserFunctionReturn
* @property {boolean} success - Did the function run successfully? * @property {boolean} success - Did the function run successfully?

View File

@ -1,6 +1,6 @@
{ {
"name": "datasquirel", "name": "datasquirel",
"version": "2.3.3", "version": "2.3.4",
"description": "Cloud-based SQL data management tool", "description": "Cloud-based SQL data management tool",
"main": "index.js", "main": "index.js",
"bin": { "bin": {