mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): type collisions with namespace (#8809)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { LayoutBase } from '../layout-base';
|
||||
import { Property } from '../../core/properties';
|
||||
import { Enums } from '../../enums';
|
||||
|
||||
/**
|
||||
* A Layout that arranges its children horizontally or vertically. The direction can be set by orientation property.
|
||||
@@ -9,12 +10,10 @@ export class StackLayout extends LayoutBase {
|
||||
* Gets or sets if layout should be horizontal or vertical.
|
||||
* The default value is vertical.
|
||||
*/
|
||||
orientation: Orientation;
|
||||
orientation: Enums.OrientationType;
|
||||
}
|
||||
|
||||
export type Orientation = 'horizontal' | 'vertical';
|
||||
|
||||
/**
|
||||
* Represents the observable property backing the orientation property of each StackLayout instance.
|
||||
*/
|
||||
export const orientationProperty: Property<StackLayout, Orientation>;
|
||||
export const orientationProperty: Property<StackLayout, Enums.OrientationType>;
|
||||
|
||||
Reference in New Issue
Block a user