mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:49:45 +00:00
Скорректировал тип WpPost
This commit is contained in:
1 parent
ef857cd3d7
commit
49a2a764b2
1 file changed
+8
-9
Vendored
+8
-9
@@ -273,25 +273,24 @@ declare namespace App {
|
|||||||
|
|
||||||
export type ParsedContent = HtmlElement | MediaBlock;
|
export type ParsedContent = HtmlElement | MediaBlock;
|
||||||
|
|
||||||
export interface ProjectPost {
|
export interface WpPost {
|
||||||
id: number;
|
id: number;
|
||||||
title: string;
|
title: string;
|
||||||
content: ParsedContent[];
|
categories?: string[];
|
||||||
lab: string;
|
tag:? number;
|
||||||
preview: string | null;
|
content?: ParsedContent[];
|
||||||
categories: string[];
|
preview?: string | null;
|
||||||
tag: string;
|
|
||||||
previewText?: string;
|
previewText?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LabPost extends ProjectPost {
|
export interface LabPost extends WpPost {
|
||||||
previewText: string;
|
previewText: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PostsResult {
|
export interface PostsResult {
|
||||||
projects: Record<number, ProjectPost>;
|
projects: Record<number, WpPost>;
|
||||||
labs: Record<number, LabPost>;
|
labs: Record<number, LabPost>;
|
||||||
other: ProjectPost[];
|
other: WpPost[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MediaItem {
|
export interface MediaItem {
|
||||||
|
|||||||
Reference in new issue
Block a user