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

@@ -4,6 +4,7 @@ import { ImageSource } from '../../image-source';
import { Color } from '../../color';
import { Property, InheritedCssProperty } from '../core/properties';
import { Length } from '../styling/style-properties';
import { Enums } from '../enums';
/**
* Represents a class that provides functionality for loading and streching image(s).
@@ -65,13 +66,11 @@ export class Image extends View {
decodeWidth: Length;
}
export type Stretch = 'none' | 'aspectFill' | 'aspectFit' | 'fill';
export const imageSourceProperty: Property<Image, ImageSource>;
export const srcProperty: Property<Image, any>;
export const isLoadingProperty: Property<Image, string>;
export const loadMode: Property<Image, 'sync' | 'async'>;
export const stretchProperty: Property<Image, Stretch>;
export const stretchProperty: Property<Image, Enums.ImageStretchType>;
export const tintColorProperty: InheritedCssProperty<Style, Color>;
export const decodeHeightProperty: Property<Image, Length>;
export const decodeWidthProperty: Property<Image, Length>;