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,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;