diff options
Diffstat (limited to 'src/lib/types.ts')
-rw-r--r-- | src/lib/types.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/types.ts b/src/lib/types.ts new file mode 100644 index 0000000..8bbf5bb --- /dev/null +++ b/src/lib/types.ts @@ -0,0 +1,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; +} + + |