MCPcopy
hub / github.com/linkwarden/linkwarden / atLeastOneFormatAvailable

Function atLeastOneFormatAvailable

packages/lib/formatStats.ts:11–20  ·  view source on GitHub ↗
(
  link: Link | LinkIncludingShortenedCollectionAndTags
)

Source from the content-addressed store, hash-verified

9}
10
11export const atLeastOneFormatAvailable = (
12 link: Link | LinkIncludingShortenedCollectionAndTags
13) => {
14 return (
15 formatAvailable(link, "image") ||
16 formatAvailable(link, "pdf") ||
17 formatAvailable(link, "readable") ||
18 formatAvailable(link, "monolith")
19 );
20};

Callers 7

LinkDetailsFunction · 0.90
CardFunction · 0.90
LinkCardFunction · 0.90
LinkListFunction · 0.90
LinkMasonryFunction · 0.90
PreservationNavbarFunction · 0.90
LinkListingFunction · 0.90

Calls 1

formatAvailableFunction · 0.85

Tested by

no test coverage detected