UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

19 lines (18 loc) 712 B
import { IAnySourceItem } from '../../AnyContent/IAnyContent'; /** * addPopularityToItems will enhance popularity metrics by highlighting items with highest relative popularity of items provided * This also makes it easier to add higlights icons later * * items MUST have FPSItem.IsA * @param items * @param popPercent */ export declare function addPopularityToItems(items: IAnySourceItem[], popPercent?: number): IAnySourceItem[]; /** * markPopular * @param finalItems * @param Recents * @param favKey */ export declare function markPopular(items: IAnySourceItem[], favKey: 'Recent' | 'LifeTime', topPercent?: number): IAnySourceItem[]; //# sourceMappingURL=markPopular.d.ts.map