Stamplay / stamplay-js-sdk

:rocket: JavaScript SDK of Stamplay cloud platform
https://stamplay.com
MIT License
88 stars 18 forks source link

Added support for TypeScript by including stamplay.d.ts Definition File #42

Closed lucavice closed 7 years ago

lucavice commented 7 years ago

By including the definition file stamplay.d.ts, it is possible to use the Stamplay library in TypeScript and take advantage of strong types. It is also possible to use the typings file to provide intellisense in plain Javascript.

In order to use the typings file, make sure you have the latest version of TypeScript npm install typescript -g

After installing the stamplay sdk with npm install stamplay-sdk:

This has been tested in Visual Studio Code.