redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

ChartMonitor TypeScript error: No overload matches this call

Open callumlocke opened this issue 1 year ago • 0 comments

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.

callumlocke avatar Apr 29 '24 20:04 callumlocke