mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
refactor(Ionic framework): update ionic.Platform.ready callback to accept any return
To be more generic, the ionic.Platform.ready callback has been updated to accept any return.
This commit is contained in:
@@ -371,8 +371,10 @@ class IonicTestController {
|
||||
* ionic.Platform
|
||||
*/
|
||||
private testStaticPlaform(): void {
|
||||
var ready: void = ionic.Platform.ready(function() {
|
||||
});
|
||||
var callbackWithoutReturn: ()=>void;
|
||||
var callbackWithReturn: ()=>boolean;
|
||||
var ready: void = ionic.Platform.ready(callbackWithoutReturn);
|
||||
ready = ionic.Platform.ready(callbackWithReturn);
|
||||
var setGrade: void = ionic.Platform.setGrade('iOS');
|
||||
var deviceInformation: string = ionic.Platform.device();
|
||||
var isWebView: boolean = ionic.Platform.isWebView();
|
||||
|
||||
Reference in New Issue
Block a user