mackenzii/src/content-env.d.ts
2024-03-13 00:25:39 -04:00

22 lines
431 B
TypeScript

declare module 'content/routes.js' {
type Template =
| 'markdown'
type GenericRouteDefinition = {
id: string
stylesheetUrls: string[]
template: Template
}
type MarkdownDefinition = GenericRouteDefinition & {
template: 'markdown'
content: string
}
type RouteDefinition =
| MarkdownDefinition
type RouteCollection = { [key: string]: RouteDefinition }
const routes: RouteCollection
}