UNPKG

next-banner

Version:

Generate Open Graph images for Next.js on build

29 lines (28 loc) 592 B
declare global { interface globalThis { NextBannerData: DataWithLayout; NextBannerConfig: BannerConfig; } } export interface Meta { title?: string; description?: string; } export declare type Custom = Record<string, any>; export interface Data { meta: Meta; custom: Custom; } export declare type DataWithLayout = Data & { layout: string; }; export interface BannerConfig { domain: string; excludePages: []; nextDir: string; layoutDir: string; outputDir: string; width: number; height: number; concurrency: number; }