-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.d.ts
80 lines (76 loc) · 1.56 KB
/
types.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
declare module 'svelte-dnd-action' {
interface DndOptions<T = unknown> {
items: T[]
type?: string
flipDurationMs?: number
dragDisabled?: boolean
dropFromOthersDisabled?: boolean
dropTargetStyle?: Record<string, string>
transformDraggedElement?: Function
}
export function dndzone(
node: HTMLElement,
options: DndOptions
): { update: Function; destroy: Function }
export function overrideItemIdKeyNameBeforeInitialisingDndZones(key: string)
}
type CSLConfig = {
enable: boolean
enableSkull: boolean
enableDynamicSkull: boolean
enableTransparentSkin: boolean
ignoreHttpsCertificate: boolean
cacheExpiry: number
enableUpdateSkull: boolean
enableLocalProfileCache: boolean
enableCacheAutoClean: boolean
forceLoadAllTextures: boolean
enableCape: boolean
threadPoolSize: number
loadlist: LoadListItem[]
}
type LoadListItem =
| MojangAPI
| CustomSkinAPI
| UniSkinAPI
| Legacy
| Elyby
| GlitchlessAPI
type MojangAPI = {
type: 'MojangAPI'
name: string
apiRoot?: string
sessionRoot?: string
}
type CustomSkinAPI = {
type: 'CustomSkinAPI'
name: string
root: string
userAgent?: string
}
type UniSkinAPI = {
type: 'UniSkinAPI'
name: string
root: string
userAgent?: string
}
type Legacy = {
type: 'Legacy'
name: string
skin: string
cape?: string
elytra?: string
model?: 'default' | 'slim' | 'auto'
checkPNG?: boolean
}
type Elyby = {
type: 'Elyby'
name: string
userAgent?: string
}
type GlitchlessAPI = {
type: 'GlitchlessAPI'
name: string
root: string
userAgent?: string
}