-
Notifications
You must be signed in to change notification settings - Fork 1
/
custom.d.ts
76 lines (71 loc) · 1.56 KB
/
custom.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
declare module '*.css' {
const content: any;
export default content;
}
declare module '*.json' {
const file: any;
export default file;
}
declare module '*.svg' {
const file: any;
export default file;
}
declare module '*.jpg' {
const file: any;
export default file;
}
declare module '*.gif' {
const file: any;
export default file;
}
declare module '*.png' {
const file: any;
export default file;
}
declare module '*.txt' {
const file: any;
export default file;
}
declare module 'igv' {
export type Browser = {
trackViews: any[];
on: (
event: string,
callback: (
track: any,
data: { name: string; value: string | number }[]
) => unknown
) => void;
search: (searchTerm: string) => void;
loadTrack: (trackConfig: unknown) => void;
removeTrackByName: (trackName: string) => void;
findTracks: (attr: string, val: string) => any;
};
const igv: {
createBrowser: (element: unknown, options: unknown) => Promise<Browser>;
};
export default igv;
}
declare namespace JSX {
interface IntrinsicElements {
'textarea-sequence': TextareaSequenceProps;
'mgnify-sourmash-component': MGnifySourmashComponentProps;
}
}
interface TextareaSequenceProps
extends React.DetailedHTMLProps<
React.HTMLAttributes<HTMLElement>,
HTMLElement
> {
height: string;
single: 'true' | 'false';
alphabet: string;
}
interface MGnifySourmashComponentProps
extends React.DetailedHTMLProps<
React.HTMLAttributes<HTMLElement>,
HTMLElement
> {
id: string;
show_directory_checkbox: boolean;
}