aboutsummaryrefslogtreecommitdiff
path: root/src/lib/types.ts
blob: e6bb22a21b1658ceb54febce9883102a2c4875b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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, emojiRootPath: string) => Promise<string[]>;
}

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