-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterfaces.ts
More file actions
41 lines (36 loc) · 872 Bytes
/
interfaces.ts
File metadata and controls
41 lines (36 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { Heading } from '../registry/utils/find-headings';
import { ExtractedSample } from '../registry/utils/extract-live-sample';
export interface IndexFileObject {
index: MainIndexData;
liveSamples: ExtractedSample[];
internalDestinations: string[];
}
export interface MainIndexData {
slug: string;
title: string;
pageType: string;
path: string;
hasContent: boolean;
}
export interface SerializedMetaMacro {
macro: string;
result: string;
}
export interface PageData {
content: string;
description: string;
hasContent: boolean;
headings: Heading[];
path: string;
originalPath: string;
updatesInOriginalRepo: string[];
section: string;
sourceLastUpdatedAt?: number;
translationLastUpdatedAt?: string;
macros?: SerializedMetaMacro[];
// data fields
title: string;
slug: string;
tags: string[];
pageType: string;
}