lbry-desktop/flow-typed/homepage.js

35 lines
713 B
JavaScript
Raw Normal View History

declare type HomepageObject = {
icon: string,
link: string,
options: any,
route: string,
title: string,
};
declare type HomepageData = {
[string]: HomepageObject,
2022-04-14 19:58:19 +02:00
default: (any) => any,
};
declare type RowDataItem = {
id: string,
title: any,
link?: string,
help?: any,
icon?: string,
extra?: any,
2021-07-23 04:15:45 +02:00
pinnedUrls?: Array<string>,
pinnedClaimIds?: Array<string>, // takes precedence over pinnedUrls
hideByDefault?: boolean,
options?: {
channelIds?: Array<string>,
excludedChannelIds?: Array<string>,
limitClaimsPerChannel?: number,
pageSize?: number,
2022-04-14 19:58:19 +02:00
releaseTime?: string,
searchLanguages?: Array<string>,
},
route?: string,
hideForUnauth?: boolean,
};