mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
React.ComponentType<P> => React.ComponentType<P = {}>
This commit is contained in:
Vendored
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user