mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: add additional deprecation warnings on a few types
This commit is contained in:
64
packages/core/core-types/index.d.ts
vendored
64
packages/core/core-types/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user