mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 19:01:47 +00:00
fix: fix setPartial
This commit is contained in:
@ -23,8 +23,8 @@ type IF<T> = (args: T) => T;
|
||||
type Promisable<T> = T | Promise<T>;
|
||||
|
||||
export type PluginContext<Config extends PluginBaseConfig = PluginBaseConfig> = {
|
||||
getConfig: () => Promise<Config>;
|
||||
setConfig: (config: DeepPartial<Config>) => Promise<void>;
|
||||
getConfig: () => Promisable<Config>;
|
||||
setConfig: (config: DeepPartial<Config>) => Promisable<void>;
|
||||
};
|
||||
|
||||
export type MainPluginContext<Config extends PluginBaseConfig = PluginBaseConfig> = PluginContext<Config> & {
|
||||
|
||||
Reference in New Issue
Block a user