mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 03:29: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 interface ProjectPost {
|
||||
export interface WpPost {
|
||||
id: number;
|
||||
title: string;
|
||||
content: ParsedContent[];
|
||||
lab: string;
|
||||
preview: string | null;
|
||||
categories: string[];
|
||||
tag: string;
|
||||
categories?: string[];
|
||||
tag:? number;
|
||||
content?: ParsedContent[];
|
||||
preview?: string | null;
|
||||
previewText?: string;
|
||||
}
|
||||
|
||||
export interface LabPost extends ProjectPost {
|
||||
export interface LabPost extends WpPost {
|
||||
previewText: string;
|
||||
}
|
||||
|
||||
export interface PostsResult {
|
||||
projects: Record<number, ProjectPost>;
|
||||
projects: Record<number, WpPost>;
|
||||
labs: Record<number, LabPost>;
|
||||
other: ProjectPost[];
|
||||
other: WpPost[];
|
||||
}
|
||||
|
||||
export interface MediaItem {
|
||||
|
||||
Reference in new issue
Block a user