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:
5
packages/core/ui/image/index.d.ts
vendored
5
packages/core/ui/image/index.d.ts
vendored
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user