mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: Enums > CoreTypes
Cleanup type symbol usage by consolidating to manage in one spot. This makes them easier to use as well by providing a single rollup of all the common type symbol's used throughout core.
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 { Enums } from '../enums';
|
||||
import { CoreTypes } from '../../core-types';
|
||||
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(): Enums.TextDecorationType {
|
||||
get textDecoration(): CoreTypes.TextDecorationType {
|
||||
return this.style.textDecoration;
|
||||
}
|
||||
set textDecoration(value: Enums.TextDecorationType) {
|
||||
set textDecoration(value: CoreTypes.TextDecorationType) {
|
||||
this.style.textDecoration = value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user