fix: update LPE post document type
This commit is contained in:
parent
cf08abfcb5
commit
6b429b2194
|
@ -89,13 +89,7 @@ export namespace LPE {
|
||||||
|
|
||||||
export type ContentBlock<D = any> = TextBlock<D> | ImageBlock<D>
|
export type ContentBlock<D = any> = TextBlock<D> | ImageBlock<D>
|
||||||
|
|
||||||
export type SearchResultItemData =
|
export type Document = LPE.Article.Data | LPE.Podcast.Document
|
||||||
| ({
|
|
||||||
type: typeof PostTypes.Article
|
|
||||||
} & Article.Metadata)
|
|
||||||
| ({
|
|
||||||
type: typeof PostTypes.Podcast
|
|
||||||
} & Required<Podcast.Document>)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace Article {
|
export namespace Article {
|
||||||
|
@ -122,6 +116,7 @@ export namespace LPE {
|
||||||
|
|
||||||
createdAt: string | null
|
createdAt: string | null
|
||||||
modifiedAt: string | null
|
modifiedAt: string | null
|
||||||
|
type: typeof LPE.PostTypes.Article
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Data = Article.Metadata & {
|
export type Data = Article.Metadata & {
|
||||||
|
@ -179,6 +174,7 @@ export namespace LPE {
|
||||||
highlighted?: boolean
|
highlighted?: boolean
|
||||||
coverImage?: Post.ImageBlock
|
coverImage?: Post.ImageBlock
|
||||||
show?: Show
|
show?: Show
|
||||||
|
type: typeof LPE.PostTypes.Podcast
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TranscriptionItem = {
|
export type TranscriptionItem = {
|
||||||
|
|
Loading…
Reference in New Issue