UNPKG

@botonic/plugin-contentful

Version:

Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet

7 lines (6 loc) 517 B
import { ContentfulClientApi, Entry } from 'contentful'; import * as contentful from 'contentful'; export type ReducedClientApi = Pick<ContentfulClientApi, 'getAsset' | 'getAssets' | 'getEntries' | 'getEntry' | 'getContentType'>; export type GetEntriesType = <T>(query: any) => Promise<contentful.EntryCollection<T>>; export type GetEntryType = <T>(id: string, query?: any) => Promise<Entry<T>>; export type ClientApiErrorReporter = (description: string, functName: string, args: any[], err: Error) => Promise<void>;