UNPKG

@vuesion/addon-contentful

Version:

vuesion contentful integration

19 lines (18 loc) 608 B
import { CreateClientParams } from 'contentful'; export interface IContentfulMiddlewareOptions extends CreateClientParams { space: string; accessToken: string; preview?: boolean; syncIntervalInSeconds?: number; defaultLocale?: string; } export interface IContentfulPage { slug: string; title: string; metaDescription: string; contentItems: Array<{ component: string; properties: any; }>; } export declare const ContentfulMiddleware: (options: IContentfulMiddlewareOptions) => ((req: any, res: any, next: any) => void) | ((req: any, res: any) => void);