From c1fad8c362527e777efffb28410eeb121830252f Mon Sep 17 00:00:00 2001 From: StealthC Date: Fri, 22 Nov 2024 21:49:15 -0300 Subject: [PATCH] Knob (Typescript): Fix valueTemplate prop type definition --- packages/primevue/src/knob/Knob.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/knob/Knob.d.ts b/packages/primevue/src/knob/Knob.d.ts index 29dc85fd6..e8627103b 100644 --- a/packages/primevue/src/knob/Knob.d.ts +++ b/packages/primevue/src/knob/Knob.d.ts @@ -191,7 +191,7 @@ export interface KnobProps { * Template string of the value. * @defaultValue '{value}' */ - valueTemplate?: (val: number) => string | string | undefined; + valueTemplate?: ((val: number) => string) | string | undefined; /** * Index of the element in tabbing order. * @defaultValue 0