fix: apply fix to types from eslint

This commit is contained in:
JellyBrick
2025-07-10 14:17:39 +09:00
parent 4c4a39b9a7
commit f73188ab83
5 changed files with 19 additions and 19 deletions

View File

@ -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 = {

View File

@ -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;
};
};
};

View File

@ -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
View File

@ -16,7 +16,7 @@ declare global {
interface DocumentEventMap {
'ytmd:audio-can-play': CustomEvent<Compressor>;
videodatachange: CustomEvent<VideoDataChanged>;
'videodatachange': CustomEvent<VideoDataChanged>;
}
interface Window {

View File

@ -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;