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:
@@ -2,7 +2,7 @@
|
||||
import { Span as SpanDefinition } from './span';
|
||||
import { ViewBase } from '../core/view-base';
|
||||
import { FontStyle, FontWeight } from '../styling/font';
|
||||
import { TextDecoration } from '../text-base';
|
||||
import { Enums } from '../enums';
|
||||
import { EventData } from '../../data/observable';
|
||||
import { isNullOrUndefined, isString } from '../../utils/types';
|
||||
|
||||
@@ -41,10 +41,10 @@ export class Span extends ViewBase implements SpanDefinition {
|
||||
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