Files
youtube-music/src/yt-web-components.d.ts
2024-10-13 22:45:11 +09:00

39 lines
875 B
TypeScript

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 IntrinsicElements {
'yt-formatted-string': ComponentProps<'span'> & YtFormattedStringProps;
'yt-button-renderer': ComponentProps<'button'> & YtButtonRendererProps;
'tp-yt-paper-spinner-lite': ComponentProps<'div'> &
YpYtPaperSpinnerLiteProps;
}
}
}