From ff7d46e78dd1a9913b3ff681b06a10e086be5eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Bedbur?= Date: Tue, 19 Nov 2024 21:00:14 +0100 Subject: [PATCH] Tabs: @update:value parameter in function definition should be string | number as prop has the same type --- packages/primevue/src/tabs/Tabs.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/primevue/src/tabs/Tabs.d.ts b/packages/primevue/src/tabs/Tabs.d.ts index 8bad4f171..71016afc3 100644 --- a/packages/primevue/src/tabs/Tabs.d.ts +++ b/packages/primevue/src/tabs/Tabs.d.ts @@ -74,7 +74,7 @@ export interface TabsState { /** * Current active value state. */ - d_value: number; + d_value: string | number; /** * Unique id for the Tabs component. */ @@ -159,9 +159,9 @@ export interface TabsSlots { export interface TabsEmitsOptions { /** * Emitted when the value changes. - * @param {string} value - Current value. + * @param {string | number} value - Current value. */ - 'update:value'(value: number): void; + 'update:value'(value: string | number): void; } export declare type TabsEmits = EmitFn;