Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

types: Add UserExternalAccountData type.

afeefuddin578f0319b2b7
diff --git a/web/src/types.ts b/web/src/types.ts
index 2bdaffe8f91..9be2333df0f 100644
--- a/web/src/types.ts
+++ b/web/src/types.ts
@@ -1,3 +1,5 @@
+import type {ExternalAccountFieldData} from "./settings_components";
+
// TODO/typescript: Move this to submessage.js
export type Submessage = {
id: number;
@@ -53,4 +55,20 @@ export type UpdateMessageEvent = {
topic?: string;
};
+// TODO/typescript: Move this to user_profile
+export type UserExternalAccountData = {
+ display_in_profile_summary: boolean | undefined;
+ field_data?: ExternalAccountFieldData;
+ id: number;
+ is_external_account: boolean;
+ is_link: boolean;
+ is_user_field: boolean;
+ name: string;
+ type: number;
+ required: boolean;
+ value: string;
+ subtype?: string;
+ link?: string;
+};
+
export type HTMLSelectOneElement = HTMLSelectElement & {type: "select-one"};