If you want to incorporate skylinkjs into your TypeScript project, follow these steps:
- Start by installing the npm package for skylinkjs (skylinkjs)
- Next, try to find and install type definitions (d.ts files) for skylinkjs. If they are not available, you can still use skylink in TypeScript by using ambient declarations like this:
declare var Skylink;
var Demo = Demo || {};
Demo.Skylink = new Skylink();
//...
You also have the option to create your own type definitions for skylink to take advantage of TypeScript's type checking. More information can be found here: link
- Now enjoy developing your application with TypeScript.
- Once you're done with step 3, compile your TypeScript files into JavaScript either using the tsc compiler or plugins if you're using gulp/grunt.
- Reference your compiled JS files in your HTML page or consider using a module loader like SystemJS for dynamic loading. Take inspiration from the hero app example at angular.io.
- If you wish, you can bundle your application into a compact package using bundling tools such as webpack or systemjs builder.