mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Update index.d.ts
This commit is contained in:
parent
bedfaf0249
commit
c34962bc59
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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user