React.ComponentType<P> => React.ComponentType<P = {}>

This commit is contained in:
Tanguy Krotoff
2017-06-29 14:00:19 +02:00
parent 552051f56f
commit 5addbe9b72
+1 -1
View File
@@ -35,7 +35,7 @@ declare namespace React {
// ----------------------------------------------------------------------
type ReactType = string | ComponentType<any>;
type ComponentType<P> = ComponentClass<P> | StatelessComponent<P>;
type ComponentType<P = {}> = ComponentClass<P> | StatelessComponent<P>;
type Key = string | number;
type Ref<T> = string | ((instance: T | null) => any);