chore: cleanup reexporting and TS 3.9 support

This commit is contained in:
Nathan Walker
2020-07-02 23:44:00 -07:00
parent 68c313d039
commit 9341cd9554
23 changed files with 55 additions and 102 deletions

View File

@@ -21,11 +21,6 @@ import * as types from "../../../utils/types";
import * as bindableResources from "./bindable-resources";
import * as polymerExpressions from "../../../js-libs/polymer-expressions";
export {
Observable, WrappedValue, PropertyChangeData, EventData,
traceEnabled, traceWrite, traceError, traceCategories, traceNotifyEvent, traceMessageType, isCategorySet
};
const contextKey = "context";
// this regex is used to get parameters inside [] for example:
// from $parents['ListView'] will return 'ListView'

View File

@@ -16,8 +16,6 @@ import { Style } from "../../styling/style";
import { profile } from "../../../profiling";
export { Style };
export const unsetValue: any = new Object();
let cssPropertyNames: string[] = [];

View File

@@ -10,21 +10,14 @@ import { Property, CssProperty, CssAnimationProperty, InheritedProperty, Style,
import { getSystemCssClasses, MODAL_ROOT_VIEW_CSS_CLASS, ROOT_VIEW_CSS_CLASS } from "../../../css/system-classes";
import { Source } from "../../../utils/debug";
import { Binding, BindingOptions, Observable, WrappedValue, PropertyChangeData, traceEnabled, traceWrite, traceCategories } from "../bindable";
import { isIOS, isAndroid } from "../../../platform";
import { layout } from "../../../utils/utils";
import { isAndroid } from "../../../platform";
import { Length, paddingTopProperty, paddingRightProperty, paddingBottomProperty, paddingLeftProperty } from "../../styling/style-properties";
// TODO: Remove this import!
import * as types from "../../../utils/types";
import { Color } from "../../../color";
import { getClass } from "../../../utils/types";
import { profile } from "../../../profiling";
export { isIOS, isAndroid, layout, Color };
export * from "../bindable";
export * from "../properties";
import * as dnm from "../../../debugger/dom-node";
import * as ssm from "../../styling/style-scope";
@@ -278,7 +271,7 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
// TODO: Use Type.prototype.typeName instead.
get typeName(): string {
return types.getClass(this);
return getClass(this);
}
get style(): Style {

View File

@@ -28,10 +28,6 @@ import { LinearGradient } from "../../styling/linear-gradient";
import { BackgroundRepeat } from "../../styling/style-properties";
import { TextTransform } from "../../text-base";
export * from "../../styling/style-properties";
export * from "../view-base";
export { LinearGradient };
import * as am from "../../animation";
let animationModule: typeof am;