Add changeTheme to PrimeVue TS interface (#4119)

Co-authored-by: Rob Morgan <rob.morgan@masabi.com>
pull/4186/head
Rob Morgan 2023-07-10 23:12:26 +01:00 committed by GitHub
parent 1ef140656a
commit f90cc83689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -317,7 +317,14 @@ interface PrimeVueLocaleOptions {
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;
export default plugin;
@ -326,6 +333,7 @@ declare module 'vue/types/vue' {
interface Vue {
$primevue: {
config: PrimeVueConfiguration;
changeTheme: SwitchTheme;
};
}
}
@ -334,6 +342,7 @@ declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$primevue: {
config: PrimeVueConfiguration;
changeTheme: SwitchTheme;
};
}
}