diff --git a/packages/core/core-types/index.d.ts b/packages/core/core-types/index.d.ts index 26087ea7a..3af22c7ba 100644 --- a/packages/core/core-types/index.d.ts +++ b/packages/core/core-types/index.d.ts @@ -703,55 +703,6 @@ export namespace CoreTypes { */ export const dark: string; } - - /** - * Singular rollup for convenience of all enums - */ - // export namespace Enums { - // Accuracy: typeof Accuracy; - // AndroidActionBarIconVisibility: typeof AndroidActionBarIconVisibility; - // AndroidActionItemPosition: typeof AndroidActionItemPosition; - // AnimationCurve: typeof AnimationCurve; - // AutocapitalizationType: typeof AutocapitalizationType; - // AutocapitalizationInputType: AutocapitalizationInputType; - // BackgroundRepeat: typeof BackgroundRepeat; - // BackgroundRepeatType: BackgroundRepeatType; - // DeviceOrientation: typeof DeviceOrientation; - // DeviceType: typeof DeviceType; - // Dock: typeof Dock; - // FontAttributes: typeof FontAttributes; - // FontStyle: typeof FontStyle; - // FontStyleType: FontStyleType; - // FontWeight: typeof FontWeight; - // FontWeightType: FontWeightType; - // HorizontalAlignment: typeof HorizontalAlignment; - // HorizontalAlignmentType: HorizontalAlignmentType; - // IOSActionItemPosition: typeof IOSActionItemPosition; - // ImageFormat: typeof ImageFormat; - // KeyboardType: typeof KeyboardType; - // KeyboardInputType: KeyboardInputType; - // NavigationBarVisibility: typeof NavigationBarVisibility; - // Orientation: typeof Orientation; - // OrientationType: OrientationType; - // ReturnKeyType: typeof ReturnKeyType; - // ReturnKeyButtonType: ReturnKeyButtonType; - // StatusBarStyle: typeof StatusBarStyle; - // Stretch: typeof Stretch; - // SystemAppearance: typeof SystemAppearance; - // TextAlignment: typeof TextAlignment; - // TextAlignmentType: typeof TextAlignment; - // TextDecoration: typeof TextDecoration; - // TextDecorationType: TextDecorationType; - // TextTransform: typeof TextTransform; - // TextTransformType: TextTransformType; - // UpdateTextTrigger: typeof UpdateTextTrigger; - // UpdateTextTriggerType: UpdateTextTriggerType; - // VerticalAlignment: typeof VerticalAlignment; - // VerticalAlignmentType: VerticalAlignmentType; - // Visibility: typeof Visibility; - // VisibilityType: VisibilityType; - // WhiteSpace: typeof WhiteSpace; - // WhiteSpaceType: WhiteSpaceType; } /** @@ -804,3 +755,18 @@ export namespace Enums { export type TextTransformType = CoreTypes.TextTransformType; export type VisibilityType = CoreTypes.VisibilityType; } + +/** + * @deprecated Use `CoreTypes.AnimationCurve` instead. + */ +export const AnimationCurve: typeof CoreTypes.AnimationCurve; + +/** + * @deprecated Use `CoreTypes.HorizontalAlignmentType` instead. + */ +export type HorizontalAlignment = CoreTypes.HorizontalAlignmentType; + +/** + * @deprecated Use `CoreTypes.VerticalAlignmentType` instead. + */ +export type VerticalAlignment = CoreTypes.VerticalAlignmentType; diff --git a/packages/core/core-types/index.ts b/packages/core/core-types/index.ts index 98729e36e..499460d9f 100644 --- a/packages/core/core-types/index.ts +++ b/packages/core/core-types/index.ts @@ -265,6 +265,10 @@ export namespace CoreTypes { } } +/** + * NOTE: Auto migrate deprecations via eslint-plugin in future + */ + /** * @deprecated Use `CoreTypes.dip` instead. */ @@ -315,3 +319,18 @@ export namespace Enums { export type TextTransformType = CoreTypes.TextTransformType; export type VisibilityType = CoreTypes.VisibilityType; } + +/** + * @deprecated Use `CoreTypes.AnimationCurve` instead. + */ +export const AnimationCurve = CoreTypes.AnimationCurve; + +/** + * @deprecated Use `CoreTypes.HorizontalAlignmentType` instead. + */ +export type HorizontalAlignment = CoreTypes.HorizontalAlignmentType; + +/** + * @deprecated Use `CoreTypes.VerticalAlignmentType` instead. + */ +export type VerticalAlignment = CoreTypes.VerticalAlignmentType; diff --git a/packages/core/package.json b/packages/core/package.json index 7f50b4566..5a5340946 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -3,7 +3,7 @@ "main": "index", "types": "index.d.ts", "description": "NativeScript Core Modules", - "version": "8.0.0-alpha.6", + "version": "8.0.0-alpha.7", "homepage": "https://nativescript.org", "repository": { "type": "git",