diff --git a/packages/huma-web-shared/src/hooks/useDebouncedValue.ts b/packages/huma-web-shared/src/hooks/useDebouncedValue.ts index 1ed1480..dc64cea 100644 --- a/packages/huma-web-shared/src/hooks/useDebouncedValue.ts +++ b/packages/huma-web-shared/src/hooks/useDebouncedValue.ts @@ -1,9 +1,9 @@ import { useEffect, useState } from 'react' -export const useDebouncedValue = ( - value: number | string = '', +export const useDebouncedValue = ( + value: T, delay = 500, -): string | number => { +): T => { const [debouncedValue, setDebouncedValue] = useState(value) useEffect(() => {