Update types
This commit is contained in:
parent
1b6504ab93
commit
d81f38809b
6
package-shared/types/index.d.ts
vendored
6
package-shared/types/index.d.ts
vendored
@ -271,13 +271,15 @@ export interface GoogleIdentityPromptNotification {
|
||||
isSkippedMoment: () => boolean;
|
||||
}
|
||||
|
||||
export interface UserDataPayload {
|
||||
export type UserDataPayload = {
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
email: string;
|
||||
password: string;
|
||||
username: string;
|
||||
}
|
||||
} & {
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
export interface GetUserFunctionReturn {
|
||||
success: boolean;
|
||||
|
@ -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} last_name - Last Name *Required
|
||||
* @property {string} email - Email *Required
|
||||
@ -313,6 +317,10 @@ const http = require("http");
|
||||
* @property {string} username - Username (Optional)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object.<string, any>} UserDataPayloadSupplement
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {object} GetUserFunctionReturn
|
||||
* @property {boolean} success - Did the function run successfully?
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "datasquirel",
|
||||
"version": "2.3.3",
|
||||
"version": "2.3.4",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
|
Loading…
Reference in New Issue
Block a user