mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
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;
|
|
}
|
|
}
|
|
}
|