lbry-desktop/flow-typed/subscription.js

20 lines
502 B
JavaScript
Raw Normal View History

// @flow
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,
};