Add changeTheme to PrimeVue TS interface (#4119)
Co-authored-by: Rob Morgan <rob.morgan@masabi.com>pull/4186/head
parent
1ef140656a
commit
f90cc83689
|
@ -317,7 +317,14 @@ interface PrimeVueLocaleOptions {
|
||||||
aria?: PrimeVueLocaleAriaOptions;
|
aria?: PrimeVueLocaleAriaOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
export declare function usePrimeVue(): { config: PrimeVueConfiguration };
|
interface SwitchTheme {
|
||||||
|
(currentTheme: string, newTheme: string, linkElementId: string, callback?: Function): void;
|
||||||
|
}
|
||||||
|
|
||||||
|
export declare function usePrimeVue(): {
|
||||||
|
config: PrimeVueConfiguration;
|
||||||
|
changeTheme: SwitchTheme;
|
||||||
|
};
|
||||||
|
|
||||||
declare const plugin: Plugin;
|
declare const plugin: Plugin;
|
||||||
export default plugin;
|
export default plugin;
|
||||||
|
@ -326,6 +333,7 @@ declare module 'vue/types/vue' {
|
||||||
interface Vue {
|
interface Vue {
|
||||||
$primevue: {
|
$primevue: {
|
||||||
config: PrimeVueConfiguration;
|
config: PrimeVueConfiguration;
|
||||||
|
changeTheme: SwitchTheme;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -334,6 +342,7 @@ declare module '@vue/runtime-core' {
|
||||||
interface ComponentCustomProperties {
|
interface ComponentCustomProperties {
|
||||||
$primevue: {
|
$primevue: {
|
||||||
config: PrimeVueConfiguration;
|
config: PrimeVueConfiguration;
|
||||||
|
changeTheme: SwitchTheme;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue