Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_data: Simplify ApiGenericStreamSubscription type.
Anders Kaseorg57c39fc257cf
diff --git a/web/src/stream_data.ts b/web/src/stream_data.tsindex 392a1eae6b8..bd6f10d00c2 100644--- a/web/src/stream_data.ts+++ b/web/src/stream_data.ts@@ -25,10 +25,7 @@ import {user_settings} from "./user_settings";import * as util from "./util";// Type for the parameter of `create_sub_from_server_data` function.-type ApiGenericStreamSubscription =- | NeverSubscribedStream- | ApiStreamSubscription- | (Stream & {stream_weekly_traffic: number | null; subscribers: number[]});+type ApiGenericStreamSubscription = NeverSubscribedStream | ApiStreamSubscription;export type InviteStreamData = {name: string;