mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
[react] add forwardRef and createRef functions for React v16.3 (#24624)
* feat(react): add forwardRef and createRef functions * fix(tests): fix failing tests - datepicker needs to be updated to use optional generic types since it was using ClassAttributes incorrectly
This commit is contained in:
committed by
Mohamed Hegazy
parent
5515e867df
commit
130f2eec2f
@@ -11,7 +11,7 @@ interface State {
|
||||
bar: number;
|
||||
}
|
||||
|
||||
const props: Props & React.ClassAttributes<{}> = {
|
||||
const props: Props = {
|
||||
foo: "foo"
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user