fix(core): type collisions with namespace (#8809)

This commit is contained in:
Nathan Walker
2021-02-25 21:03:07 -08:00
parent 784e9c93cd
commit ab11dc9c9f
110 changed files with 1882 additions and 1827 deletions

View File

@@ -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.
}
}