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

ComponentClass<P>' requires between 0 and 1 type arguments #188

Closed
Sandip2110 opened this issue Feb 6, 2019 · 2 comments
Closed

ComponentClass<P>' requires between 0 and 1 type arguments #188

Sandip2110 opened this issue Feb 6, 2019 · 2 comments

Comments

@Sandip2110
Copy link

getting this error as in the react-d3-tree.d.ts file for
var Tree: React.ComponentClass<ReactD3TreeProps,any>;

There should be 1 argument

@bkrem
Copy link
Owner

bkrem commented Mar 14, 2019

Hi @Sandip2110,

I couldn't reproduce this on my side since technically var Tree: React.ComponentClass<ReactD3TreeProps, any> is valid (but redundant), since

// @types/react/index.d.ts
type ComponentState = any;
interface ComponentClass<P = {}, S = ComponentState>

I removed the any declaration so you shouldn't be seeing this anymore, although I'd still be curious how and when you saw this error if you have a moment :)

@bkrem bkrem closed this as completed Mar 14, 2019
@bkrem
Copy link
Owner

bkrem commented Mar 14, 2019

Published as v1.12.3

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

2 participants