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,6 @@
|
||||
// Deifinitions.
|
||||
import { Background as BackgroundDefinition } from './background';
|
||||
import { BackgroundRepeat } from '../styling/style-properties';
|
||||
import { Enums } from '../enums';
|
||||
import { LinearGradient } from './linear-gradient';
|
||||
// Types.
|
||||
import { Color } from '../../color';
|
||||
@@ -11,7 +11,7 @@ export class Background implements BackgroundDefinition {
|
||||
|
||||
public color: Color;
|
||||
public image: string | LinearGradient;
|
||||
public repeat: BackgroundRepeat;
|
||||
public repeat: Enums.BackgroundRepeatType;
|
||||
public position: string;
|
||||
public size: string;
|
||||
public borderTopColor: Color;
|
||||
@@ -69,7 +69,7 @@ export class Background implements BackgroundDefinition {
|
||||
return clone;
|
||||
}
|
||||
|
||||
public withRepeat(value: BackgroundRepeat): Background {
|
||||
public withRepeat(value: Enums.BackgroundRepeatType): Background {
|
||||
const clone = this.clone();
|
||||
clone.repeat = value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user