mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 11:51:47 +00:00
feat: migrate from raw HTML to JSX (TSX / SolidJS) (#3583)
Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
21
src/yt-web-components.d.ts
vendored
21
src/yt-web-components.d.ts
vendored
@ -34,14 +34,35 @@ declare module 'solid-js' {
|
||||
icon: Icons;
|
||||
}
|
||||
|
||||
interface YtmdTransProps {
|
||||
key?: string;
|
||||
}
|
||||
|
||||
interface IntrinsicElements {
|
||||
center: ComponentProps<'div'>;
|
||||
'ytmd-trans': ComponentProps<'span'> & YtmdTransProps;
|
||||
'yt-formatted-string': ComponentProps<'span'> & YtFormattedStringProps;
|
||||
'yt-button-renderer': ComponentProps<'button'> & YtButtonRendererProps;
|
||||
'yt-touch-feedback-shape': ComponentProps<'div'>;
|
||||
'tp-yt-paper-spinner-lite': ComponentProps<'div'> &
|
||||
YpYtPaperSpinnerLiteProps;
|
||||
'tp-yt-paper-icon-button': ComponentProps<'div'> &
|
||||
TpYtPaperIconButtonProps;
|
||||
'yt-icon-button': ComponentProps<'div'> & TpYtPaperIconButtonProps;
|
||||
'tp-yt-iron-icon': ComponentProps<'div'>;
|
||||
'yt-icon': ComponentProps<'div'>;
|
||||
// input type="range" slider component
|
||||
'tp-yt-paper-slider': ComponentProps<'input'> & {
|
||||
value?: number | string;
|
||||
min?: number | string;
|
||||
max?: number | string;
|
||||
step?: number | string;
|
||||
disabled?: boolean;
|
||||
'on:immediate-value-changed'?: (
|
||||
event: CustomEvent<{ value: number }>,
|
||||
) => void;
|
||||
};
|
||||
'tp-yt-paper-progress': ComponentProps<'input'>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user