Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChartMonitor TypeScript error: No overload matches this call #1657

Open
callumlocke opened this issue Apr 29, 2024 · 0 comments
Open

ChartMonitor TypeScript error: No overload matches this call #1657

callumlocke opened this issue Apr 29, 2024 · 0 comments

Comments

@callumlocke
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant