mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Add changeTheme to PrimeVue TS interface (#4119)
Co-authored-by: Rob Morgan <rob.morgan@masabi.com>
This commit is contained in:
parent
1ef140656a
commit
f90cc83689
1 changed files with 10 additions and 1 deletions
11
components/lib/config/PrimeVue.d.ts
vendored
11
components/lib/config/PrimeVue.d.ts
vendored
|
@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue