mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
stream_data: Simplify ApiGenericStreamSubscription type.
The removed alternative is a subtype of NeverSubscribedStream and thus already included. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
86d5ee5bdf
commit
57c39fc257
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user