From 1196339fb2f6a9cc1b68b83c0d24973b9e6b3cea Mon Sep 17 00:00:00 2001 From: Geovanni Perez <1775792+geoperez@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:27:49 -0600 Subject: [PATCH] Fix build --- src/constants.ts | 2 +- src/hooks.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;