Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

DefinitelyTyped Project for IBM MobileFirst and Hybrid Mobile Apps

DZone's Guide to

DefinitelyTyped Project for IBM MobileFirst and Hybrid Mobile Apps

Check our this awesome MobileFirst DefinitelyTyped demo which presents a neat project.

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

I’ve blogged before about the client-side API for hybrid mobile apps built on IBM MobileFirst. One of the things I’ve discovered recently is the library of DefinitlyTyped definition files for TypeScript developers. These files provide IntelliSense for a huge set of various frameworks and client-side code written in TypeScript. Turns out though that you can also use them in regular old JavaScript files too. My editor of choice (Visual Studio Code) has great support for this. You can simply get the file, drop it into your project, and go to town.

So with that in mind – I started working on a DefinitelyTyped file for MobileFirst. I had to guess a bit at exactly how to do it, and I probably did a few things wrong, but you can get the work in progress here: https://github.com/cfjedimaster/MobileFirst-Typings. As you will see in the ReadMe, I’ve covered a few of the main classes in the WL namespace (this is the core namespace for the API). I’m looking for feedback on how I built it as well as volunteers to help complete the library with a pull request.

In case your curious as to how well this works, check out the video below:

As a side note – you can get definition files for Apache Cordova and Ionic as well!

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:
mobile ,ibm ,mobilefirst

Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}