mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +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";
|
import * as util from "./util";
|
||||||
|
|
||||||
// Type for the parameter of `create_sub_from_server_data` function.
|
// Type for the parameter of `create_sub_from_server_data` function.
|
||||||
type ApiGenericStreamSubscription =
|
type ApiGenericStreamSubscription = NeverSubscribedStream | ApiStreamSubscription;
|
||||||
| NeverSubscribedStream
|
|
||||||
| ApiStreamSubscription
|
|
||||||
| (Stream & {stream_weekly_traffic: number | null; subscribers: number[]});
|
|
||||||
|
|
||||||
export type InviteStreamData = {
|
export type InviteStreamData = {
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user