Eric Anderson
Eric Anderson
This can be closed now that #8 was merged in.
This is no longer happening. I am unsure what changed.
I kept MutableRefObject around so that anyone using RefObject in their application code would not have the type change from under them and represented RefObject with MutableRefObject. It seemed like...
@jchitel agreed. I just hit this snag trying to change the react typings yesterday for this exact same reason.
@weswigham If you haven't started on this yet, I'd like to take a crack at it
@weswigham Damn. Can you make sure I can capture the SFC or ComponentClass so we can do things like limit the children of `` to ``?
I think that will also let us mark the defaultProps optional.
I mean: ```ts interface Props { foo: string, bar: number } class Foo extends React.Component { static defaultProps = { foo: "Hi Mom!" }; //... } ``` In this world,...
So the props we should enforce are actually `Omit & Partial`... which maybe we can't do with this change.
@weswigham Thanks!