forked from th-ch/youtube-music
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyt-web-components.d.ts
47 lines (41 loc) · 1.08 KB
/
yt-web-components.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
import { Icons } from '@/types/icons';
import type { ComponentProps } from 'solid-js';
declare module 'solid-js' {
namespace JSX {
interface YtFormattedStringProps {
text?: {
runs: { text: string }[];
};
data?: object;
disabled?: boolean;
hidden?: boolean;
}
interface YtButtonRendererProps {
data?: {
icon?: {
iconType: string;
};
isDisabled?: boolean;
style?: string;
text?: {
simpleText: string;
};
};
}
interface YpYtPaperSpinnerLiteProps {
active?: boolean;
}
interface TpYtPaperIconButtonProps {
icon: Icons;
}
interface IntrinsicElements {
center: ComponentProps<'div'>;
'yt-formatted-string': ComponentProps<'span'> & YtFormattedStringProps;
'yt-button-renderer': ComponentProps<'button'> & YtButtonRendererProps;
'tp-yt-paper-spinner-lite': ComponentProps<'div'> &
YpYtPaperSpinnerLiteProps;
'tp-yt-paper-icon-button': ComponentProps<'div'> &
TpYtPaperIconButtonProps;
}
}
}