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