Files
blog_legacy/types/keystatic.ts
Dave 0e70773aa0
Some checks failed
Build and Deploy Astro Site / deploy (push) Failing after 42s
Added PageHeader and first content
2025-09-11 23:22:55 +02:00

20 lines
646 B
TypeScript

import { Entry } from '@keystatic/core/reader'
import keystaticConfig from '~/keystatic.config'
export type Author = Entry<(typeof keystaticConfig.collections)['authors']>
export type Tag = Entry<(typeof keystaticConfig.collections)['tags']>
export type AWQArticle = Entry<
(typeof keystaticConfig.collections)['awq_posts']
>
export type AWQTalent = Entry<
(typeof keystaticConfig.collections)['awq_talents']
>
export type MetaArticle = Entry<
(typeof keystaticConfig.collections)['meta_posts']
>
export type AWQContent = AWQArticle | AWQTalent
export type MetaContent = MetaArticle
export type ArticleContent = AWQContent | MetaContent