mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +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
ui/button/button.d.ts
vendored
6
ui/button/button.d.ts
vendored
@ -24,12 +24,12 @@ declare module "ui/button" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/Button.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.Button;
|
||||
android: any /* android.widget.Button */;
|
||||
|
||||
/**
|
||||
* Gets the native [UIButton](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIButton_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UIButton;
|
||||
ios: any /* UIButton */;
|
||||
|
||||
/**
|
||||
* Gets or sets the text (label) displayed by this instance.
|
||||
@ -62,4 +62,4 @@ declare module "ui/button" {
|
||||
*/
|
||||
_addChildFromBuilder(name: string, value: any): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user