reduxjs / redux-devtools

DevTools for Redux with hot reloading, action replay, and customizable UI
http://youtube.com/watch?v=xsSnOQynTHs
MIT License
13.93k stars 1.15k forks source link

ChartMonitor TypeScript error: No overload matches this call #1657

Open callumlocke opened 2 months ago

callumlocke commented 2 months ago

Trying out the @redux-devtools/chart-monitor package and it is giving me a type error when used exactly as shown in the readme:

<ChartMonitor />
No overload matches this call.
  Overload 1 of 2, '(props: ChartMonitorProps<unknown, Action<string>>): ChartMonitor<unknown, Action<string>>', gave the following error.
    Type '{}' is missing the following properties from type 'Pick<Readonly<ChartMonitorProps<unknown, Action<string>>>, "defaultIsVisible" | "dispatch" | "monitorState" | "nextActionId" | "actionsById" | ... 26 more ... | "tooltipOptions">': dispatch, monitorState, nextActionId, actionsById, and 25 more.
  Overload 2 of 2, '(props: ChartMonitorProps<unknown, Action<string>>, context: any): ChartMonitor<unknown, Action<string>>', gave the following error.
    Type '{}' is missing the following properties from type 'Pick<Readonly<ChartMonitorProps<unknown, Action<string>>>, "defaultIsVisible" | "dispatch" | "monitorState" | "nextActionId" | "actionsById" | ... 26 more ... | "tooltipOptions">': dispatch, monitorState, nextActionId, actionsById, and 25 more.ts(2769)

Does it require props now? I'm using the latest versions of @reduxjs/toolkit, redux, and typescript.