diff --git a/src/components/columngroup/ColumnGroup.d.ts b/src/components/columngroup/ColumnGroup.d.ts index bb8c12431..41ddfc33d 100755 --- a/src/components/columngroup/ColumnGroup.d.ts +++ b/src/components/columngroup/ColumnGroup.d.ts @@ -1,9 +1,35 @@ -interface ColumnGroupProps { - type?: string; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; + +type ColumnGroupType = 'header' | 'footer'; + +export interface ColumnGroupProps { + /** + * Type of column group + */ + type?: ColumnGroupType; } -declare class ColumnGroup { - $props: ColumnGroupProps; +export interface ColumnGroupSlots { } +export declare type ColumnGroupEmits = { +} + +declare class ColumnGroup extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + ColumnGroup: GlobalComponentConstructor + } +} + +/** + * + * ColumnGroup is a helper component to create grouped header and footer on DataTable. + * + * Demos: + * + * - [ColumnGroup](https://www.primefaces.org/primevue/showcase/#/datatable/colgroup) + * + */ export default ColumnGroup;