diff --git a/packages/primevue/src/orderlist/OrderList.d.ts b/packages/primevue/src/orderlist/OrderList.d.ts index 2b4620a0fb..a95d124e52 100755 --- a/packages/primevue/src/orderlist/OrderList.d.ts +++ b/packages/primevue/src/orderlist/OrderList.d.ts @@ -12,7 +12,7 @@ import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { ButtonPassThroughOptions, ButtonProps } from 'primevue/button'; import type { ListboxPassThroughOptions } from 'primevue/listbox'; import type { PassThroughOptions } from 'primevue/passthrough'; -import { TransitionProps, VNode } from 'vue'; +import { AllowedComponentProps, ComponentCustomProps, TransitionProps, VNode, VNodeProps } from 'vue'; export declare type OrderListPassThroughOptionType = OrderListPassThroughAttributes | ((options: OrderListPassThroughMethodOptions) => OrderListPassThroughAttributes | string) | string | null | undefined; @@ -169,11 +169,11 @@ export interface OrderListState { /** * Defines valid properties in OrderList component. */ -export interface OrderListProps { +export interface OrderListProps { /** * Value of the component. */ - modelValue?: any[]; + modelValue?: T[]; /** * Name of the field that uniquely identifies the a record in the data. */ @@ -181,7 +181,7 @@ export interface OrderListProps { /** * Selected items in the list. */ - selection?: any[]; + selection?: T[]; /** * Defines whether metaKey is required or not for the selection. * When true metaKey needs to be pressed to select or unselect an item and @@ -281,7 +281,7 @@ export interface OrderListProps { /** * Defines valid slots in OrderList component. */ -export interface OrderListSlots { +export interface OrderListSlots { /** * Custom header template. */ @@ -295,7 +295,7 @@ export interface OrderListSlots { /** * Item of the component */ - item: any; + item: T; /** * Selection state */ @@ -313,7 +313,7 @@ export interface OrderListSlots { /** * Option of the component */ - option: any; + option: T; /** * Selection state */ @@ -389,11 +389,19 @@ export declare type OrderListEmits = EmitFn; * @group Component * */ -declare const OrderList: DefineComponent; +declare const OrderList: { + new ( + props: OrderListProps + ): { + $props: OrderListProps & VNodeProps & AllowedComponentProps & ComponentCustomProps; + $slots: OrderListSlots; + $emit: EmitFn; + }; +}; declare module 'vue' { export interface GlobalComponents { - OrderList: DefineComponent; + OrderList: typeof OrderList; } } diff --git a/packages/primevue/src/picklist/PickList.d.ts b/packages/primevue/src/picklist/PickList.d.ts index 42908c24e7..e463b4a989 100755 --- a/packages/primevue/src/picklist/PickList.d.ts +++ b/packages/primevue/src/picklist/PickList.d.ts @@ -12,7 +12,7 @@ import type { ComponentHooks } from '@primevue/core/basecomponent'; import type { ButtonPassThroughOptions } from 'primevue/button'; import type { ListboxPassThroughOptions } from 'primevue/listbox'; import type { PassThroughOptions } from 'primevue/passthrough'; -import { TransitionProps, VNode } from 'vue'; +import { AllowedComponentProps, ComponentCustomProps, TransitionProps, VNode, VNodeProps } from 'vue'; export declare type PickListPassThroughOptionType = PickListPassThroughAttributes | ((options: PickListPassThroughMethodOptions) => PickListPassThroughAttributes | string) | string | null | undefined; @@ -290,15 +290,15 @@ export interface PickListContext { /** * Defines valid properties in PickList component. */ -export interface PickListProps { +export interface PickListProps { /** * Value of the component as a multidimensional array. */ - modelValue?: any[][] | undefined; + modelValue?: T[][] | undefined; /** * Selected items in the list as a multidimensional array. */ - selection?: any[][] | undefined; + selection?: T[][] | undefined; /** * Name of the field that uniquely identifies the a record in the data. */ @@ -420,7 +420,7 @@ export interface PickListProps { /** * Defines valid slots in PickList component. */ -export interface PickListSlots { +export interface PickListSlots { /** * Custom header template. */ @@ -434,7 +434,7 @@ export interface PickListSlots { /** * Item of the component */ - item: any; + item: T; /** * Selection state */ @@ -452,7 +452,7 @@ export interface PickListSlots { /** * Option of the component */ - option: any; + option: T; /** * Selection state */ @@ -612,11 +612,19 @@ export declare type PickListEmits = EmitFn; * @group Component * */ -declare const PickList: DefineComponent; +declare const PickList: { + new ( + props: PickListProps + ): { + $props: PickListProps & VNodeProps & AllowedComponentProps & ComponentCustomProps; + $slots: PickListSlots; + $emit: EmitFn; + }; +}; declare module 'vue' { export interface GlobalComponents { - PickList: DefineComponent; + PickList: typeof PickList; } }