-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyaml.d.ts
50 lines (45 loc) · 967 Bytes
/
yaml.d.ts
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
42
43
44
45
46
47
48
49
50
declare module "$content/content.yml" {
export interface ContentJsonObject {
name: string;
description: string;
creators: string[];
tags: string[];
links: {
download: string;
issues?: string;
support?: string;
homepage?: string;
};
integrations?: {
github?: {
owner: string;
repo: string;
downloads: boolean;
latestUpdate: boolean;
latestVersion: boolean;
};
};
}
type ContentJson = ContentJsonObject[];
const value: ContentJson;
export default value;
}
declare module "$content/tags.yml" {
export interface TagJsonObject {
name: string;
color: string;
category?: boolean;
}
type TagJson = Record<string, TagJsonObject>;
const value: TagJson;
export default value;
}
declare module "$content/creators.yml" {
export interface CreatorJsonObject {
name: string;
links?: string[];
}
type CreatorJson = Record<string, CreatorJsonObject>;
const value: CreatorJson;
export default value;
}