Knob (Typescript): Fix valueTemplate prop type definition

pull/6842/head
StealthC 2024-11-22 21:49:15 -03:00 committed by GitHub
parent bd7161298a
commit c1fad8c362
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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