mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 11:01:45 +00:00
feat: rename plugins to clarify context (#1392)
This commit is contained in:
8
src/virtual-module.d.ts
vendored
8
src/virtual-module.d.ts
vendored
@ -2,7 +2,7 @@ declare module 'virtual:MainPlugins' {
|
||||
import type { BrowserWindow } from 'electron';
|
||||
import type { ConfigType } from './config/dynamic';
|
||||
|
||||
export const pluginList: Record<string, (win: BrowserWindow, options: ConfigType) => Promise<void>>;
|
||||
export const mainPlugins: Record<string, (win: BrowserWindow, options: ConfigType) => Promise<void>>;
|
||||
}
|
||||
|
||||
declare module 'virtual:MenuPlugins' {
|
||||
@ -10,17 +10,17 @@ declare module 'virtual:MenuPlugins' {
|
||||
import type { MenuTemplate } from './menu';
|
||||
import type { ConfigType } from './config/dynamic';
|
||||
|
||||
export const pluginList: Record<string, (win: BrowserWindow, options: ConfigType, refreshMenu: () => void) => MenuTemplate>;
|
||||
export const menuPlugins: Record<string, (win: BrowserWindow, options: ConfigType, refreshMenu: () => void) => MenuTemplate>;
|
||||
}
|
||||
|
||||
declare module 'virtual:PreloadPlugins' {
|
||||
import type { ConfigType } from './config/dynamic';
|
||||
|
||||
export const pluginList: Record<string, (options: ConfigType) => Promise<void>>;
|
||||
export const preloadPlugins: Record<string, (options: ConfigType) => Promise<void>>;
|
||||
}
|
||||
|
||||
declare module 'virtual:RendererPlugins' {
|
||||
import type { ConfigType } from './config/dynamic';
|
||||
|
||||
export const pluginList: Record<string, (options: ConfigType) => Promise<void>>;
|
||||
export const rendererPlugins: Record<string, (options: ConfigType) => Promise<void>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user