mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 12:42:06 +00:00
fix: apply fix to types from eslint
This commit is contained in:
@ -12,8 +12,8 @@ export interface DefaultConfig {
|
|||||||
'window-size': WindowSizeConfig;
|
'window-size': WindowSizeConfig;
|
||||||
'window-maximized': boolean;
|
'window-maximized': boolean;
|
||||||
'window-position': WindowPositionConfig;
|
'window-position': WindowPositionConfig;
|
||||||
url: string;
|
'url': string;
|
||||||
options: {
|
'options': {
|
||||||
language?: string;
|
language?: string;
|
||||||
tray: boolean;
|
tray: boolean;
|
||||||
appVisible: boolean;
|
appVisible: boolean;
|
||||||
@ -35,7 +35,7 @@ export interface DefaultConfig {
|
|||||||
usePodcastParticipantAsArtist: boolean;
|
usePodcastParticipantAsArtist: boolean;
|
||||||
themes: string[];
|
themes: string[];
|
||||||
};
|
};
|
||||||
plugins: Record<string, unknown>;
|
'plugins': Record<string, unknown>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultConfig: DefaultConfig = {
|
const defaultConfig: DefaultConfig = {
|
||||||
|
|||||||
@ -2,9 +2,9 @@ export interface LanguageResources {
|
|||||||
[lang: string]: {
|
[lang: string]: {
|
||||||
translation: Record<string, unknown> & {
|
translation: Record<string, unknown> & {
|
||||||
language?: {
|
language?: {
|
||||||
name: string;
|
'name': string;
|
||||||
'local-name': string;
|
'local-name': string;
|
||||||
code: string;
|
'code': string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -7,15 +7,15 @@ import { onPlayerApiReady } from './renderer';
|
|||||||
import { t } from '@/i18n';
|
import { t } from '@/i18n';
|
||||||
|
|
||||||
export type PictureInPicturePluginConfig = {
|
export type PictureInPicturePluginConfig = {
|
||||||
enabled: boolean;
|
'enabled': boolean;
|
||||||
alwaysOnTop: boolean;
|
'alwaysOnTop': boolean;
|
||||||
savePosition: boolean;
|
'savePosition': boolean;
|
||||||
saveSize: boolean;
|
'saveSize': boolean;
|
||||||
hotkey: 'P';
|
'hotkey': 'P';
|
||||||
'pip-position': [number, number];
|
'pip-position': [number, number];
|
||||||
'pip-size': [number, number];
|
'pip-size': [number, number];
|
||||||
isInPiP: boolean;
|
'isInPiP': boolean;
|
||||||
useNativePiP: boolean;
|
'useNativePiP': boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default createPlugin({
|
export default createPlugin({
|
||||||
|
|||||||
2
src/reset.d.ts
vendored
2
src/reset.d.ts
vendored
@ -16,7 +16,7 @@ declare global {
|
|||||||
|
|
||||||
interface DocumentEventMap {
|
interface DocumentEventMap {
|
||||||
'ytmd:audio-can-play': CustomEvent<Compressor>;
|
'ytmd:audio-can-play': CustomEvent<Compressor>;
|
||||||
videodatachange: CustomEvent<VideoDataChanged>;
|
'videodatachange': CustomEvent<VideoDataChanged>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Window {
|
interface Window {
|
||||||
|
|||||||
12
src/yt-web-components.d.ts
vendored
12
src/yt-web-components.d.ts
vendored
@ -39,7 +39,7 @@ declare module 'solid-js' {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface IntrinsicElements {
|
interface IntrinsicElements {
|
||||||
center: ComponentProps<'div'>;
|
'center': ComponentProps<'div'>;
|
||||||
'ytmd-trans': ComponentProps<'span'> & YtmdTransProps;
|
'ytmd-trans': ComponentProps<'span'> & YtmdTransProps;
|
||||||
'yt-formatted-string': ComponentProps<'span'> & YtFormattedStringProps;
|
'yt-formatted-string': ComponentProps<'span'> & YtFormattedStringProps;
|
||||||
'yt-button-renderer': ComponentProps<'button'> & YtButtonRendererProps;
|
'yt-button-renderer': ComponentProps<'button'> & YtButtonRendererProps;
|
||||||
@ -53,11 +53,11 @@ declare module 'solid-js' {
|
|||||||
'yt-icon': ComponentProps<'div'>;
|
'yt-icon': ComponentProps<'div'>;
|
||||||
// input type="range" slider component
|
// input type="range" slider component
|
||||||
'tp-yt-paper-slider': ComponentProps<'input'> & {
|
'tp-yt-paper-slider': ComponentProps<'input'> & {
|
||||||
value?: number | string;
|
'value'?: number | string;
|
||||||
min?: number | string;
|
'min'?: number | string;
|
||||||
max?: number | string;
|
'max'?: number | string;
|
||||||
step?: number | string;
|
'step'?: number | string;
|
||||||
disabled?: boolean;
|
'disabled'?: boolean;
|
||||||
'on:immediate-value-changed'?: (
|
'on:immediate-value-changed'?: (
|
||||||
event: CustomEvent<{ value: number }>,
|
event: CustomEvent<{ value: number }>,
|
||||||
) => void;
|
) => void;
|
||||||
|
|||||||
Reference in New Issue
Block a user