mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
declare module 'custom-electron-prompt' {
|
|
import { BrowserWindow } from 'electron';
|
|
|
|
export interface PromptCounterOptions {
|
|
minimum?: number;
|
|
maximum?: number;
|
|
multiFire?: boolean;
|
|
}
|
|
|
|
export interface PromptKeybindOptions {
|
|
value: string;
|
|
label: string;
|
|
default: string;
|
|
}
|
|
|
|
export interface PromptOptions {
|
|
width?: number;
|
|
height?: number;
|
|
resizable?: boolean;
|
|
title?: string;
|
|
label?: string;
|
|
buttonLabels?: {
|
|
ok?: string;
|
|
cancel?: string;
|
|
};
|
|
alwaysOnTop?: boolean;
|
|
value?: string;
|
|
type?: 'input' | 'select' | 'counter';
|
|
selectOptions?: Record<string, string>;
|
|
keybindOptions?: PromptKeybindOptions[];
|
|
counterOptions?: PromptCounterOptions;
|
|
icon?: string;
|
|
useHtmlLabel?: boolean;
|
|
customStylesheet?: string;
|
|
menuBarVisible?: boolean;
|
|
skipTaskbar?: boolean;
|
|
frame?: boolean;
|
|
customScript?: string;
|
|
enableRemoteModule?: boolean;
|
|
inputAttrs: Partial<HTMLInputElement>;
|
|
}
|
|
|
|
const prompt: (options?: PromptOptions, parent?: BrowserWindow) => Promise<string | null>;
|
|
|
|
export default prompt;
|
|
}
|