Update index.d.ts

This commit is contained in:
Cameron Little 2017-05-25 09:29:01 -07:00 committed by GitHub
parent bedfaf0249
commit c34962bc59

View File

@ -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);