-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
65 lines (60 loc) · 1.39 KB
/
types.ts
File metadata and controls
65 lines (60 loc) · 1.39 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { ArticleId } from '$lib/scripts/ArticleId';
/** The `slug` field will be provided if the instance was provided by the API. */
export interface ArticleMetadata {
redirect?: string;
published: boolean;
indexed: boolean;
title: string;
slug?: ArticleId;
}
export interface ArticleThumbnailImgFmts {
[slug: string]: string;
}
export interface GearsAndSettings {
avatar: string;
dpi: number;
sens: number | { role: string; value: number }[];
mouse: string;
mousepad: string;
keyboard: string;
crosshairSettings: {
type: string | null;
showsAccuracy: boolean | null;
color: string;
thickness: number | null;
rotation: number | null;
crosshairLength: number | null;
centerGap: number | null;
opacity: number | null;
outline: {
color: string;
opacity: number;
thickness: number;
shift: number;
};
dot: {
type: string;
size: number;
opacity: number;
};
scaleWithResolution: boolean;
}[];
}
export interface Member {
memberName: string;
icon: string | null;
role: string | null;
country: 'jp' | 'us' | 'kr' | null;
birthday: { year: number | null; month: number; day: number } | null;
age: number | null;
twitter: string | null;
youtube: string | null;
twitch: string | null;
homepage: string | null;
gearsAndSettings?: GearsAndSettings;
}
export interface LicenseInfo {
licenses: string | null;
licenseText: string | null;
[key: string]: unknown;
}