diff --git a/src/components/progressbar/ProgressBar.d.ts b/src/components/progressbar/ProgressBar.d.ts index eee7a2c6b..d5f2a34fc 100755 --- a/src/components/progressbar/ProgressBar.d.ts +++ b/src/components/progressbar/ProgressBar.d.ts @@ -1,16 +1,51 @@ import { VNode } from 'vue'; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; -interface ProgressBarProps { - value?: number; - mode?: string; - showValue?: boolean; +type ProgressBarModeType = 'determinate' | 'indeterminate'; + +export interface ProgressBarProps { + /** + * Current value of the progress. + */ + value?: number | undefined; + /** + * Defines the mode of the progress + * @see ProgressBarModeType + * Default value is 'determinate'. + */ + mode?: ProgressBarModeType; + /** + * Whether to display the progress bar value. + * Default value is true. + */ + showValue?: boolean | undefined; } -declare class ProgressBar { - $props: ProgressBarProps; - $slots: { - '': VNode[]; +export interface ProgressBarSlots { + /** + * Custom content slot. + */ + default: () => VNode[]; +} + +export declare type ProgressBarEmits = { +} + +declare class ProgressBar extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + ProgressBar: GlobalComponentConstructor } } +/** + * + * ProgressBar is a process status indicator. + * + * Demos: + * + * - [ProgressBar](https://www.primefaces.org/primevue/showcase/#/progressbar) + * + */ export default ProgressBar;