Fixing regression with animated type exports. Strongly-typed the animated export checks as well to prevent similar regressions in the future.

This commit is contained in:
David de Regt 2017-09-19 00:59:43 -07:00
Родитель fdccce2c42
Коммит 007feb1d90
5 изменённых файлов: 10 добавлений и 9 удалений

Просмотреть файл

@ -125,7 +125,7 @@ module ReactXP {
export type WebView = RXInterfaces.WebView;
export var WebView: RXInterfaces.WebViewConstructor = WebViewImpl;
export import Animated = AnimatedImpl;
export import Animated = AnimatedImpl.Animated;
export import CommonProps = RXTypes.CommonProps;
export import CommonStyledProps = RXTypes.CommonStyledProps;
export import Types = RXTypes;

Просмотреть файл

@ -15,10 +15,7 @@ import RXTypes = require('../common/Types');
export declare module ReactXP {
export type Accessibility = Interfaces.Accessibility;
export var Accessibility: Interfaces.Accessibility;
export import Animated = Interfaces.Animated;
export var Accessibility: Interfaces.Accessibility;
export type ActivityIndicator = Interfaces.ActivityIndicator;
export var ActivityIndicator: typeof Interfaces.ActivityIndicator;
export type Alert = Interfaces.Alert;
@ -74,6 +71,9 @@ export declare module ReactXP {
export type WebView = Interfaces.WebView;
export var WebView: Interfaces.WebViewConstructor;
export type Animated = Interfaces.Animated;
export var Animated: Interfaces.Animated;
export import CommonProps = RXTypes.CommonProps;
export import CommonStyledProps = RXTypes.CommonStyledProps;
export import Types = RXTypes;

Просмотреть файл

@ -124,7 +124,7 @@ module ReactXP {
export type WebView = RXInterfaces.WebView;
export var WebView: RXInterfaces.WebViewConstructor = WebViewImpl;
export import Animated = AnimatedImpl;
export import Animated = AnimatedImpl.Animated;
export import CommonProps = RXTypes.CommonProps;
export import CommonStyledProps = RXTypes.CommonStyledProps;
export import Types = RXTypes;

Просмотреть файл

@ -124,7 +124,7 @@ module ReactXP {
export type WebView = RXInterfaces.WebView;
export var WebView: RXInterfaces.WebViewConstructor = WebViewImpl;
export import Animated = AnimatedImpl;
export import Animated = AnimatedImpl.Animated;
export import CommonProps = RXTypes.CommonProps;
export import CommonStyledProps = RXTypes.CommonStyledProps;
export import Types = RXTypes;

Просмотреть файл

@ -124,7 +124,7 @@ module ReactXP {
export type WebView = RXInterfaces.WebView;
export var WebView: RXInterfaces.WebViewConstructor = WebViewImpl;
export import Animated = AnimatedImpl;
export import Animated = AnimatedImpl.Animated;
export import CommonProps = RXTypes.CommonProps;
export import CommonStyledProps = RXTypes.CommonStyledProps;
export import Types = RXTypes;
@ -139,7 +139,8 @@ module ReactXP {
// See web/ReactXP.tsx for more details.
var _rxImplementsRxInterface: typeof RXModuleInterface.ReactXP = ReactXP;
export = _rxImplementsRxInterface;
_rxImplementsRxInterface = _rxImplementsRxInterface;
export = ReactXP;
/*
var rx = module.exports;