mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
feat(refactor): PluginDefinition::platform (#3665)
This commit is contained in:
@ -38,6 +38,13 @@ export type RendererPluginLifecycle<Config, Context, This> =
|
||||
| PluginLifecycleSimple<Context, This>
|
||||
| RendererPluginLifecycleExtra<Config, Context, This>;
|
||||
|
||||
export enum Platform {
|
||||
Windows = 1 << 0,
|
||||
macOS = 1 << 1,
|
||||
Linux = 1 << 2,
|
||||
Freebsd = 1 << 3
|
||||
}
|
||||
|
||||
export interface PluginDef<
|
||||
BackendProperties,
|
||||
PreloadProperties,
|
||||
@ -49,6 +56,7 @@ export interface PluginDef<
|
||||
description?: () => string;
|
||||
addedVersion?: string;
|
||||
config?: Config;
|
||||
platform?: Platform;
|
||||
|
||||
menu?: (
|
||||
ctx: MenuContext<Config>,
|
||||
|
||||
Reference in New Issue
Block a user