UNPKG

@becklyn/contentful-adapter

Version:

[![CI](https://github.com/Becklyn-Studios/contentful-adapter/actions/workflows/ci.yml/badge.svg)](https://github.com/Becklyn-Studios/contentful-adapter/actions/workflows/ci.yml)

8 lines (7 loc) 600 B
import { Asset as ContentfulAsset, Entry } from "contentful"; import { Asset, LabeledLink } from "@becklyn/ui-types"; import { PageCache } from "./cache"; export declare const getContentfulSelectString: (select?: string[]) => string | null; export declare const getContentfulWhereObject: (where?: Record<string, string>) => Record<string, string>; export declare const getAssetFromContentful: (data?: ContentfulAsset | null) => Asset | null; export declare const getLabeledLinkFromContentful: (pageCache: PageCache, data?: Entry<any> | null, pageContentType?: string) => Promise<LabeledLink | null>;