TypeScript support

Supporting Browser-based Javascript and Node.js
Fresh meat
Posts: 1
Joined: Tue Jan 15, 2019 2:13 am

TypeScript support

Postby TorbjornLunde » Tue Jan 15, 2019 2:32 am

Like many people I'm using TypeScript for many of my JavaScript-based projects as it provides compile time type checking, better tooling, etc…

While I can certainly use the Phidgets JavaScript library as-is considering that TypeScript is fully compatible with JavaScript. However, it would be really nice to get the usual advantages of TypeScript also when using the Phidgets library.

Are there any plans to add full support for TypeScript?

As far as I know TypeScript support can be added by (1) converting code fully into TypeScript (which compiles to readable JavaScript and can be done gradually), (2) by using type annotations in plain JavaScript or (3) by creating a TypeScript interface definition file (d.ts).

I would really appreciate having TypeScript support when using Phidgets!

In either case, thanks for creating and maintaining this wonderful hardware platform.

Return to “Javascript”

Who is online

Users browsing this forum: No registered users and 1 guest