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: Fix ExtraData type.

Joydeep Bhattacharjee94cd67b90fbd
diff --git a/web/src/poll_widget.ts b/web/src/poll_widget.ts
index 940f9959ffa..7932bc40392 100644
--- a/web/src/poll_widget.ts
+++ b/web/src/poll_widget.ts
@@ -18,12 +18,10 @@ import * as people from "./people";
type Event = {sender_id: number; data: InboundData};
-type ExtraData =
- | {
- question?: string | undefined;
- options?: never[] | undefined;
- }
- | undefined;
+export type ExtraData = {
+ question?: string;
+ options?: string[];
+};
declare global {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions