Skip to content

Commit

Permalink
fix: update type for the column node that used props instead of `$p…
Browse files Browse the repository at this point in the history
…rops`

Fixes primefaces#3395.
  • Loading branch information
volvachev authored and Egor Volvachev committed Dec 19, 2022
1 parent c671256 commit a1899de
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions components/column/Column.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface ColumnLoadingOptions extends VirtualScrollerLoaderOptions {
/**
* Column instance
*/
column: Column;
column: ColumnNode;
/**
* Column field
*/
Expand Down Expand Up @@ -264,7 +264,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
/**
* Column field.
*/
Expand All @@ -290,7 +290,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
}) => VNode[];
/**
* Custom footer template.
Expand All @@ -300,7 +300,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
}) => VNode[];
/**
* Custom editor template.
Expand All @@ -314,7 +314,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
/**
* Column field.
*/
Expand Down Expand Up @@ -443,7 +443,7 @@ export interface ColumnSlots {
/**
* Column node.
*/
column: Column;
column: ColumnNode;
/**
* Column field.
*/
Expand All @@ -468,6 +468,8 @@ export declare type ColumnEmits = {};

declare class Column extends ClassComponent<ColumnProps, ColumnSlots, ColumnEmits> {}

export declare type ColumnNode = Column & { props: Column['$props'] };

declare module '@vue/runtime-core' {
interface GlobalComponents {
Column: GlobalComponentConstructor<Column>;
Expand Down

0 comments on commit a1899de

Please sign in to comment.