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,6 +1,7 @@
|
||||
import { TextFieldBase, secureProperty } from './text-field-common';
|
||||
import { whiteSpaceProperty, WhiteSpace } from '../text-base';
|
||||
import { whiteSpaceProperty } from '../text-base';
|
||||
import { keyboardTypeProperty } from '../editable-text-base';
|
||||
import { Enums } from '../enums';
|
||||
|
||||
export * from './text-field-common';
|
||||
|
||||
@@ -96,10 +97,10 @@ export class TextField extends TextFieldBase {
|
||||
this._setInputType(inputType);
|
||||
}
|
||||
|
||||
[whiteSpaceProperty.getDefault](): WhiteSpace {
|
||||
[whiteSpaceProperty.getDefault](): Enums.WhiteSpaceType {
|
||||
return 'nowrap';
|
||||
}
|
||||
[whiteSpaceProperty.setNative](value: WhiteSpace) {
|
||||
[whiteSpaceProperty.setNative](value: Enums.WhiteSpaceType) {
|
||||
// Don't change it otherwise TextField will go to multiline mode.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user