mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-02 22:37:48 +08:00
Update index.d.ts
This commit is contained in:
2
types/react/index.d.ts
vendored
2
types/react/index.d.ts
vendored
@@ -26,7 +26,7 @@ declare namespace React {
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
type ReactType = string | ComponentClass<any> | StatelessComponent<any>;
|
||||
type ReactComponent<P> = ComponentClass<P> | StatelessComponent<P>;
|
||||
type ComponentType<P> = ComponentClass<P> | StatelessComponent<P>;
|
||||
|
||||
type Key = string | number;
|
||||
type Ref<T> = string | ((instance: T) => any);
|
||||
|
||||
Reference in New Issue
Block a user