aboutsummaryrefslogtreecommitdiff
path: root/src/lib/types.ts
blob: da073e603c1663b96d1688fcfb3106ea32fb596c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { GetStaticPathsResult } from 'next';

/* Collection of methods to fetch data & metadata from CDN */
export interface Adapter {
  getStaticMarkdownPaths: (cdn: string) => Promise<GetStaticPathsResult['paths']>;
  getMarkdownSource: (cdn: string, path: string[]) => Promise<string>;
  getEmojiFileNames: (cdn: string) => Promise<string[]>;
}

export interface BenzinConfig {
  CDN: string;
  adapter: Adapter;
  title: string;
  faviconPath: string;
}