diff --git a/src/constants.ts b/src/constants.ts index 20b9caa..829cbfc 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -87,7 +87,7 @@ export type TableColumn = HasLabel & { cellValue: TableCellTypes, rawData: TDataIn, data: TableCellTypes[][], - ) => JSX.Element; + ) => React.JSX.Element; formatterOptions?: { keepFormat?: boolean; decimals?: number; diff --git a/src/hooks.ts b/src/hooks.ts index 45a0fdd..4b55d31 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -4,7 +4,7 @@ import { startTransition, useEffect, useMemo, useRef, useState } from 'react'; import { debounce } from 'uno-js'; export const useDebounce = (callback: () => unknown, waitMilliseconds?: number) => { - const ref = useRef<() => unknown>(); + const ref = useRef<() => unknown>(null); useEffect(() => { ref.current = callback;