Over a million developers have joined DZone.

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

Discover how to focus on operators for Reactive Programming and how they are essential to react to data in your application.  Brought to you in partnership with Wakanda

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!

Learn how divergent branches can appear in your repository and how to better understand why they are called “branches".  Brought to you in partnership with Wakanda

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.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}