lbry-desktop/flow-typed/subscription.js

31 lines
744 B
JavaScript
Raw Normal View History

// @flow
2018-10-19 22:38:07 +02:00
import * as ACTIONS from 'constants/action_types';
import {
DOWNLOADED,
DOWNLOADING,
NOTIFY_ONLY,
VIEW_ALL,
VIEW_LATEST_FIRST,
2018-11-21 22:20:55 +01:00
SUGGESTED_TOP_BID,
SUGGESTED_TOP_SUBSCRIBED,
SUGGESTED_FEATURED,
2018-10-19 22:38:07 +02:00
} from 'constants/subscriptions';
2019-04-24 16:02:08 +02:00
declare type Subscription = {
channelName: string, // @CryptoCandor,
uri: string, // lbry://@CryptoCandor#9152f3b054f692076a6882d1b58a30e8781cc8e6
2020-11-02 17:51:08 +01:00
notificationsDisabled?: boolean,
};
2018-10-19 22:38:07 +02:00
2020-11-02 17:51:08 +01:00
declare type Following = {
uri: string, // lbry://@CryptoCandor#9152f3b054f692076a6882d1b58a30e8781cc8e6
notificationsDisabled: boolean,
2018-11-21 22:20:55 +01:00
};
2019-04-24 16:02:08 +02:00
declare type SubscriptionState = {
2018-10-19 22:38:07 +02:00
subscriptions: Array<Subscription>,
2020-11-02 17:51:08 +01:00
following: Array<Following>,
2018-10-19 22:38:07 +02:00
loading: boolean,
2018-11-21 22:20:55 +01:00
firstRunCompleted: boolean,
};