organize types

This commit is contained in:
lightling 2024-05-03 17:30:03 -04:00
parent f48118122b
commit e6cac42dbd
9 changed files with 51 additions and 48 deletions

View file

@ -7,7 +7,7 @@ import {
type ProjectListDefinition,
type RouteDefinition,
type SiteGlobals,
type Template,
type TemplateType,
} from '@goldenwere/static-web-templates-types'
const markdownBody = () => import ('./views/markdown/markdown.vue')
@ -16,7 +16,7 @@ const projectViewBody = () => import ('./views/project/project-view.vue')
const galleryListBody = () => import ('./views/gallery/gallery-list.vue')
const galleryViewBody = () => import ('./views/gallery/gallery-view.vue')
export const templates: Record<Template, () => Promise<any>> = {
export const templates: Record<TemplateType, () => Promise<any>> = {
'markdown': markdownBody,
'project-list': projectListBody,
'gallery-list': galleryListBody,