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:
@@ -6,7 +6,7 @@ import { AddArrayFromBuilder, AddChildFromBuilder } from '../core/view';
|
||||
import { ViewBase } from '../core/view-base';
|
||||
import { Color } from '../../color';
|
||||
import { FontStyle, FontWeight } from '../styling/font';
|
||||
import { TextDecoration } from '../text-base';
|
||||
import { Enums } from '../enums';
|
||||
|
||||
export class FormattedString extends ViewBase implements FormattedStringDefinition, AddArrayFromBuilder, AddChildFromBuilder {
|
||||
private _spans: ObservableArray<Span>;
|
||||
@@ -45,10 +45,10 @@ export class FormattedString extends ViewBase implements FormattedStringDefiniti
|
||||
this.style.fontWeight = value;
|
||||
}
|
||||
|
||||
get textDecoration(): TextDecoration {
|
||||
get textDecoration(): Enums.TextDecorationType {
|
||||
return this.style.textDecoration;
|
||||
}
|
||||
set textDecoration(value: TextDecoration) {
|
||||
set textDecoration(value: Enums.TextDecorationType) {
|
||||
this.style.textDecoration = value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user