Update types
This commit is contained in:
Vendored
+4
-2
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user