/typescriptrefresher

The repo consists of snippets for a quick refresher on Typescript

Primary LanguageTypeScript

Typescript refresher


Execution Instructions

There are two ways to execute :

  1. Command Line
    tsc {{path-to-Typescript-file}}.ts
    node {{path-to-Javascript-file}}.js
  1. Browser

Compile the typescript file

    tsc {{path-to-Typescript-file}}.ts

Call the compiled javascript from the HTML

<body>
    <script src="test.js"></script>
</body>

Check the browser console for output.