-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtypes.d.ts
More file actions
39 lines (34 loc) · 773 Bytes
/
types.d.ts
File metadata and controls
39 lines (34 loc) · 773 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
import type * as Rari from "@mdn/rari";
export interface IndexedDoc {
id: number;
mdn_url: string;
title: string;
token_count: number | null;
has_embedding: boolean;
has_embedding_next: boolean;
markdown_hash: string;
text_hash: string;
}
export interface Doc {
mdn_url: string;
title: string;
title_short: string;
markdown: string;
markdown_hash: string;
text: string;
text_hash: string;
}
export type FormattingUpdate = Pick<
Doc,
"mdn_url" | "title" | "title_short" | "markdown" | "markdown_hash"
>;
export type EmbeddingUpdate = Pick<Doc, "mdn_url" | "text"> & {
has_embedding: boolean;
has_embedding_next: boolean;
};
export type DocMetadata = Pick<
Rari.Doc,
"title" | "short_title" | "mdn_url"
> & {
hash: string;
};