1. steal-typescript
StealJS plugin for TypeScript
steal-typescript
Package: steal-typescript
Created by: phillipskevin
Last modified: Mon, 27 Jun 2022 00:14:57 GMT
Version: 0.5.0
License: MIT
Downloads: 74
Repository: https://github.com/phillipskevin/steal-typescript

Install

npm install steal-typescript
yarn add steal-typescript

steal-typescript

Build Status
npm version

Use StealJS to load TypeScript modules — no build required. Here are the steps to get started:

Install steal and steal-typescript.

npm install --save steal steal-typescript

Update your package.json to add steal-typescript as a steal plugin

   "steal": {
    "plugins": [
      "steal-typescript"
    ]
  }

Create your index.html file:

 <!doctype html>
<html>
  <body>
    <script src="./node_modules/steal/steal.js" main="index.ts"></script>
  </body>
</html>

Create your index.ts file:

 class Greeter {
    constructor(public greeting: string) { }
    greet() {
        return "<h1>" + this.greeting + "</h1>";
    }
};

var greeter = new Greeter("Hello, world!");
    
document.body.innerHTML = greeter.greet();

Load your app in a browser

That's it. Your app is ready to go.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code