@@ -38,7 +38,7 @@ export namespace CoreTypes {
38
38
} ;
39
39
40
40
export type KeyboardInputType = 'datetime' | 'phone' | 'number' | 'url' | 'email' | 'integer' ;
41
- export module KeyboardType {
41
+ export namespace KeyboardType {
42
42
export const datetime = 'datetime' ;
43
43
export const phone = 'phone' ;
44
44
export const number = 'number' ;
@@ -47,7 +47,7 @@ export namespace CoreTypes {
47
47
export const integer = 'integer' ;
48
48
}
49
49
export type AutofillType = 'username' | 'password' | 'none' | string ;
50
- export module AutofillType {
50
+ export namespace AutofillType {
51
51
export const username = 'username' ;
52
52
export const password = 'password' ;
53
53
export const newUsername = 'newUsername' ;
@@ -57,7 +57,7 @@ export namespace CoreTypes {
57
57
}
58
58
59
59
export type ReturnKeyButtonType = 'done' | 'next' | 'go' | 'search' | 'send' ;
60
- export module ReturnKeyType {
60
+ export namespace ReturnKeyType {
61
61
export const done = 'done' ;
62
62
export const next = 'next' ;
63
63
export const go = 'go' ;
@@ -66,51 +66,51 @@ export namespace CoreTypes {
66
66
}
67
67
68
68
export type TextAlignmentType = 'initial' | 'left' | 'center' | 'right' | 'justify' ;
69
- export module TextAlignment {
69
+ export namespace TextAlignment {
70
70
export const left = 'left' ;
71
71
export const center = 'center' ;
72
72
export const right = 'right' ;
73
73
export const justify = 'justify' ;
74
74
}
75
75
76
76
export type TextDecorationType = 'none' | 'underline' | 'line-through' | 'underline line-through' ;
77
- export module TextDecoration {
77
+ export namespace TextDecoration {
78
78
export const none = 'none' ;
79
79
export const underline = 'underline' ;
80
80
export const lineThrough = 'line-through' ;
81
81
}
82
82
83
83
export type TextTransformType = 'initial' | 'none' | 'capitalize' | 'uppercase' | 'lowercase' ;
84
- export module TextTransform {
84
+ export namespace TextTransform {
85
85
export const none = 'none' ;
86
86
export const capitalize = 'capitalize' ;
87
87
export const uppercase = 'uppercase' ;
88
88
export const lowercase = 'lowercase' ;
89
89
}
90
90
91
91
export type WhiteSpaceType = 'initial' | 'normal' | 'nowrap' ;
92
- export module WhiteSpace {
92
+ export namespace WhiteSpace {
93
93
export const normal = 'normal' ;
94
94
export const nowrap = 'nowrap' ;
95
95
}
96
96
97
97
export type MaxLinesType = number ;
98
98
99
99
export type OrientationType = 'horizontal' | 'vertical' ;
100
- export module Orientation {
100
+ export namespace Orientation {
101
101
export const horizontal = 'horizontal' ;
102
102
export const vertical = 'vertical' ;
103
103
}
104
104
105
105
export type DeviceOrientationType = 'portrait' | 'landscape' | 'unknown' ;
106
- export module DeviceOrientation {
106
+ export namespace DeviceOrientation {
107
107
export const portrait = 'portrait' ;
108
108
export const landscape = 'landscape' ;
109
109
export const unknown = 'unknown' ;
110
110
}
111
111
112
112
export type HorizontalAlignmentType = 'left' | 'center' | 'right' | 'stretch' ;
113
- export module HorizontalAlignment {
113
+ export namespace HorizontalAlignment {
114
114
export const left = 'left' ;
115
115
export const center = 'center' ;
116
116
export const right = 'right' ;
@@ -120,7 +120,7 @@ export namespace CoreTypes {
120
120
}
121
121
122
122
export type VerticalAlignmentType = 'top' | 'middle' | 'bottom' | 'stretch' ;
123
- export module VerticalAlignment {
123
+ export namespace VerticalAlignment {
124
124
export const top = 'top' ;
125
125
export const middle = 'middle' ;
126
126
export const bottom = 'bottom' ;
@@ -143,15 +143,15 @@ export namespace CoreTypes {
143
143
}
144
144
145
145
export type ImageStretchType = 'none' | 'aspectFill' | 'aspectFit' | 'fill' ;
146
- export module ImageStretch {
146
+ export namespace ImageStretch {
147
147
export const none : ImageStretchType = 'none' ;
148
148
export const aspectFill : ImageStretchType = 'aspectFill' ;
149
149
export const aspectFit : ImageStretchType = 'aspectFit' ;
150
150
export const fill : ImageStretchType = 'fill' ;
151
151
}
152
152
153
153
export type VisibilityType = 'visible' | 'hidden' | 'collapse' | 'collapsed' ;
154
- export module Visibility {
154
+ export namespace Visibility {
155
155
export const visible : VisibilityType = 'visible' ;
156
156
export const collapse : VisibilityType = 'collapse' ;
157
157
export const collapsed : VisibilityType = 'collapsed' ;
@@ -161,79 +161,79 @@ export namespace CoreTypes {
161
161
const parseStrict = makeParser < CoreTypes . VisibilityType > ( isValid ) ;
162
162
}
163
163
164
- export module FontAttributes {
164
+ export namespace FontAttributes {
165
165
export const Normal = 0 ;
166
166
export const Bold = 1 ;
167
167
export const Italic = 1 << 1 ;
168
168
}
169
169
170
- export module DeviceType {
170
+ export namespace DeviceType {
171
171
export const Phone : string = 'Phone' ;
172
172
export const Tablet : string = 'Tablet' ;
173
173
}
174
174
175
175
export type UpdateTextTriggerType = 'focusLost' | 'textChanged' ;
176
- export module UpdateTextTrigger {
176
+ export namespace UpdateTextTrigger {
177
177
export const focusLost : UpdateTextTriggerType = 'focusLost' ;
178
178
export const textChanged : UpdateTextTriggerType = 'textChanged' ;
179
179
}
180
180
181
- export module Accuracy {
181
+ export namespace Accuracy {
182
182
export const any : number = 300 ;
183
183
export const high : number = 3 ;
184
184
}
185
185
186
186
export type DockType = 'left' | 'top' | 'right' | 'bottom' ;
187
- export module Dock {
187
+ export namespace Dock {
188
188
export const left : DockType = 'left' ;
189
189
export const top : DockType = 'top' ;
190
190
export const right : DockType = 'right' ;
191
191
export const bottom : DockType = 'bottom' ;
192
192
}
193
193
194
194
export type AutocapitalizationInputType = 'none' | 'words' | 'sentences' | 'allcharacters' ;
195
- export module AutocapitalizationType {
195
+ export namespace AutocapitalizationType {
196
196
export const none : AutocapitalizationInputType = 'none' ;
197
197
export const words : AutocapitalizationInputType = 'words' ;
198
198
export const sentences : AutocapitalizationInputType = 'sentences' ;
199
199
export const allCharacters : AutocapitalizationInputType = 'allcharacters' ;
200
200
}
201
201
202
- export module NavigationBarVisibility {
202
+ export namespace NavigationBarVisibility {
203
203
export const auto : string = 'auto' ;
204
204
export const never : string = 'never' ;
205
205
export const always : string = 'always' ;
206
206
}
207
207
208
- export module AndroidActionBarIconVisibility {
208
+ export namespace AndroidActionBarIconVisibility {
209
209
export const auto : string = 'auto' ;
210
210
export const never : string = 'never' ;
211
211
export const always : string = 'always' ;
212
212
}
213
213
214
- export module AndroidActionItemPosition {
214
+ export namespace AndroidActionItemPosition {
215
215
export const actionBar : string = 'actionBar' ;
216
216
export const actionBarIfRoom : string = 'actionBarIfRoom' ;
217
217
export const popup : string = 'popup' ;
218
218
}
219
219
220
- export module IOSActionItemPosition {
220
+ export namespace IOSActionItemPosition {
221
221
export const left : string = 'left' ;
222
222
export const right : string = 'right' ;
223
223
}
224
224
225
- export module ImageFormat {
225
+ export namespace ImageFormat {
226
226
export const png : string = 'png' ;
227
227
export const jpeg : string = 'jpeg' ;
228
228
export const jpg : string = 'jpg' ;
229
229
}
230
230
231
- export module FontStyle {
231
+ export namespace FontStyle {
232
232
export const normal : string = 'normal' ;
233
233
export const italic : string = 'italic' ;
234
234
}
235
235
236
- export module FontWeight {
236
+ export namespace FontWeight {
237
237
export const thin : string = '100' ;
238
238
export const extraLight : string = '200' ;
239
239
export const light : string = '300' ;
@@ -246,7 +246,7 @@ export namespace CoreTypes {
246
246
}
247
247
248
248
export type BackgroundRepeatType = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat' ;
249
- export module BackgroundRepeat {
249
+ export namespace BackgroundRepeat {
250
250
export const repeat : BackgroundRepeatType = 'repeat' ;
251
251
export const repeatX : BackgroundRepeatType = 'repeat-x' ;
252
252
export const repeatY : BackgroundRepeatType = 'repeat-y' ;
@@ -257,26 +257,26 @@ export namespace CoreTypes {
257
257
258
258
let animation : typeof animationModule ;
259
259
260
- export module AnimationCurve {
260
+ export namespace AnimationCurve {
261
261
export const ease = 'ease' ;
262
262
export const easeIn = 'easeIn' ;
263
263
export const easeOut = 'easeOut' ;
264
264
export const easeInOut = 'easeInOut' ;
265
265
export const linear = 'linear' ;
266
266
export const spring = 'spring' ;
267
- export function cubicBezier ( x1 : number , y1 : number , x2 : number , y2 : number ) : Object {
267
+ export function cubicBezier ( x1 : number , y1 : number , x2 : number , y2 : number ) {
268
268
animation = animation || require ( '../ui/animation' ) ;
269
269
270
270
return new animation . CubicBezierAnimationCurve ( x1 , y1 , x2 , y2 ) ;
271
271
}
272
272
}
273
273
274
- export module StatusBarStyle {
274
+ export namespace StatusBarStyle {
275
275
export const light = 'light' ;
276
276
export const dark = 'dark' ;
277
277
}
278
278
279
- export module SystemAppearance {
279
+ export namespace SystemAppearance {
280
280
export const light = 'light' ;
281
281
export const dark = 'dark' ;
282
282
}
0 commit comments