diff --git a/packages/primevue/src/column/Column.d.ts b/packages/primevue/src/column/Column.d.ts index b7c8eb4c7d..f20e069e24 100755 --- a/packages/primevue/src/column/Column.d.ts +++ b/packages/primevue/src/column/Column.d.ts @@ -18,7 +18,7 @@ import type { PassThroughOptions } from 'primevue/passthrough'; import type { RadioButtonPassThroughOptionType } from 'primevue/radiobutton'; import type { SelectPassThroughOptionType } from 'primevue/select'; import type { VirtualScrollerLoaderOptions } from 'primevue/virtualscroller'; -import { VNode } from 'vue'; +import { AllowedComponentProps, ComponentCustomProps, VNode, VNodeProps } from 'vue'; export declare type ColumnPassThroughOptionType = ColumnPassThroughAttributes | ((options: ColumnPassThroughMethodOptions) => ColumnPassThroughAttributes | string) | string | null | undefined; @@ -640,7 +640,7 @@ export interface ColumnContext { /** * Defines valid slots in Column component. */ -export interface ColumnSlots { +export interface ColumnSlots { /** * Custom body template for DataTable. * @param {Object} scope - body slot's params. @@ -649,11 +649,11 @@ export interface ColumnSlots { /** * Row data. */ - data: any; + data: T; /** * Row node data. */ - node: any; + node: T; /** * Column node. */ @@ -661,7 +661,7 @@ export interface ColumnSlots { /** * Column field. */ - field: string | ((item: any) => string) | undefined; + field: string | ((item: T) => string) | undefined; /** * Row index. */ @@ -689,11 +689,11 @@ export interface ColumnSlots { /** * Row data. */ - data: any; + data: T; /** * Row node data. */ - node: any; + node: T; /** * Column node. */ @@ -749,7 +749,7 @@ export interface ColumnSlots { /** * Row data. */ - data: any; + data: T; /** * Column node. */ @@ -884,7 +884,7 @@ export interface ColumnSlots { /** * Row data. */ - data: any; + data: T; /** * Column node. */ @@ -1033,13 +1033,21 @@ export declare type ColumnEmits = EmitFn; * @group Component * */ -declare const Column: DefineComponent; +declare const Column: { + new ( + props: ColumnProps & { of?: readonly T[] | T[] | null } + ): { + $props: ColumnProps & { of?: readonly T[] | T[] | null } & VNodeProps & AllowedComponentProps & ComponentCustomProps; + $slots: ColumnSlots; + $emit: EmitFn; + }; +}; export type ColumnNode = { props: ColumnProps }; declare module 'vue' { export interface GlobalComponents { - Column: DefineComponent; + Column: typeof Column; } }