mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Don't expose platform types in public d.ts files.
Use any. Add a comment with the real type.
This commit is contained in:
6
image-source/image-source.d.ts
vendored
6
image-source/image-source.d.ts
vendored
@@ -20,12 +20,12 @@ declare module "image-source" {
|
||||
/**
|
||||
* The iOS-specific [UIImage](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/) instance. Will be undefined when running on Android.
|
||||
*/
|
||||
ios: UIImage;
|
||||
ios: any /* UIImage */;
|
||||
|
||||
/**
|
||||
* The Android-specific [image](http://developer.android.com/reference/android/graphics/Bitmap.html) instance. Will be undefined when running on iOS.
|
||||
*/
|
||||
android: android.graphics.Bitmap;
|
||||
android: any /* android.graphics.Bitmap */;
|
||||
|
||||
/**
|
||||
* Loads this instance from the specified resource name.
|
||||
@@ -122,4 +122,4 @@ declare module "image-source" {
|
||||
* @param path The path.
|
||||
*/
|
||||
export function isFileOrResourcePath(path: string): boolean
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user