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.

poll_widget: Rename type to be more relevant.

Varun Singh4985363bd738
diff --git a/web/src/poll_widget.ts b/web/src/poll_widget.ts
index c7416232f3f..f93f1ea1354 100644
--- a/web/src/poll_widget.ts
+++ b/web/src/poll_widget.ts
@@ -18,7 +18,7 @@ import * as people from "./people";
export type Event = {sender_id: number; data: InboundData};
-export type ExtraData = {
+export type PollWidgetExtraData = {
question?: string;
options?: string[];
};
@@ -40,7 +40,7 @@ export function activate({
callback: (
data: NewOptionOutboundData | QuestionOutboundData | VoteOutboundData | undefined,
) => void;
- extra_data: ExtraData;
+ extra_data: PollWidgetExtraData;
message: Message;
}): void {
const is_my_poll = people.is_my_user_id(message.sender_id);
diff --git a/web/src/widgetize.ts b/web/src/widgetize.ts
index e90a106f657..3c8f43c0467 100644
--- a/web/src/widgetize.ts
+++ b/web/src/widgetize.ts
@@ -3,7 +3,7 @@ import $ from "jquery";
import * as blueslip from "./blueslip";
import * as message_lists from "./message_lists";
import type {Message} from "./message_store";
-import type {Event, ExtraData as PollWidgetExtraData} from "./poll_widget";
+import type {Event, PollWidgetExtraData} from "./poll_widget";
// TODO: This ZFormExtraData type should be moved to web/src/zform.js when it will be migrated
type ZFormExtraData = {