Skip to content

Commit

Permalink
- RefObject instead of MutableRefObject
Browse files Browse the repository at this point in the history
- import JSX from types react
  • Loading branch information
pieterbergwerff committed Dec 12, 2024
1 parent d558336 commit a411081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CanvasHTMLAttributes, MutableRefObject, ReactNode } from 'react'
import type { CanvasHTMLAttributes, RefObject, ReactNode, JSX } from 'react'
import type {
Chart,
ChartType,
Expand All @@ -11,7 +11,7 @@ import type {

export type ForwardedRef<T> =
| ((instance: T | null) => void)
| MutableRefObject<T | null>
| RefObject<T | null>
| null

export interface ChartProps<
Expand Down

0 comments on commit a411081

Please sign in to comment.