Skip to content

Commit

Permalink
fix(types): upgrade to react 19 types
Browse files Browse the repository at this point in the history
  • Loading branch information
Pkcarreno committed Dec 19, 2024
1 parent d0dde9d commit fb1e1cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/features/editor/components/ui/plus-minus-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface PlusMinusInput {
value: number;
onChange: (value: number) => void;
interval?: number;
renderValue?: (value: number) => JSX.Element | string;
renderValue?: (value: number) => React.JSX.Element | string;
delay?: number;
}

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-timeout-fn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function useTimeoutFn(
ms: number = 0,
): UseTimeoutFnReturn {
const ready = useRef<boolean | null>(false);
const timeout = useRef<ReturnType<typeof setTimeout>>();
const timeout = useRef<ReturnType<typeof setTimeout>>(null);
const callback = useRef(fn);

const isReady = useCallback(() => ready.current, []);
Expand Down

0 comments on commit fb1e1cc

Please sign in to comment.