mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-15 04:11:47 +00:00
46
custom-electron-prompt.d.ts
vendored
Normal file
46
custom-electron-prompt.d.ts
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user