mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 03:09:45 +00:00
фикс билда
This commit is contained in:
1 parent
968b0b8c82
commit
af763e5865
17 files changed
+224
-134
No files matched your search
Vendored
+38
-14
@@ -19,7 +19,25 @@ declare namespace WPv2 {
|
||||
raw: string;
|
||||
rendered: string;
|
||||
}
|
||||
|
||||
export interface PagingInfo {
|
||||
total: number;
|
||||
totalPages: number;
|
||||
links: {
|
||||
next?: string;
|
||||
};
|
||||
next?: {
|
||||
_options: {
|
||||
auth: boolean;
|
||||
endpoint: string;
|
||||
username: string;
|
||||
password: string;
|
||||
};
|
||||
transport: Record<string, any>;
|
||||
_params: Record<string, any>;
|
||||
_supportedMethods: string[];
|
||||
_path: Record<string, any>;
|
||||
};
|
||||
}
|
||||
export interface Content {
|
||||
raw: string;
|
||||
rendered: string;
|
||||
@@ -113,7 +131,9 @@ declare namespace WPv2 {
|
||||
class_list: string[];
|
||||
_links: Links;
|
||||
}
|
||||
|
||||
export interface MediaWithPaging extends Array<Media> {
|
||||
_paging: PagingInfo;
|
||||
}
|
||||
export interface Media {
|
||||
id: number;
|
||||
date: string;
|
||||
@@ -181,15 +201,15 @@ declare namespace WPv2 {
|
||||
offset?: number;
|
||||
order?: "asc" | "desc";
|
||||
orderby?:
|
||||
| "author"
|
||||
| "date"
|
||||
| "id"
|
||||
| "include"
|
||||
| "modified"
|
||||
| "parent"
|
||||
| "relevance"
|
||||
| "slug"
|
||||
| "title";
|
||||
| "author"
|
||||
| "date"
|
||||
| "id"
|
||||
| "include"
|
||||
| "modified"
|
||||
| "parent"
|
||||
| "relevance"
|
||||
| "slug"
|
||||
| "title";
|
||||
slug?: string[];
|
||||
status?: string[];
|
||||
}
|
||||
@@ -276,7 +296,9 @@ declare namespace App {
|
||||
export interface WpPost {
|
||||
id: number;
|
||||
title: string;
|
||||
categories: string[];
|
||||
categories?: string[];
|
||||
previewText?: string;
|
||||
preview?: string;
|
||||
}
|
||||
|
||||
export interface WpPostPage extends WpPost {
|
||||
@@ -285,11 +307,13 @@ declare namespace App {
|
||||
}
|
||||
|
||||
export interface Card extends WpPost {
|
||||
preview: string | null;
|
||||
preview?: string | null;
|
||||
previewText?: string;
|
||||
}
|
||||
|
||||
export interface LabCard extends Card {
|
||||
previewText: string;
|
||||
previewText?: string;
|
||||
preview?: string;
|
||||
}
|
||||
|
||||
export interface PostsResult {
|
||||
|
||||
Reference in new issue
Block a user