Difference between revisions of "Typescript"

From MgmtWiki
Jump to: navigation, search
(Context)
(Example)
Line 7: Line 7:
  
  
==Example==
+
==Examples==
  
 
* [https://www.thepolyglotdeveloper.com/2016/01/include-external-javascript-libraries-in-an-angular-2-typescript-project/ Include External JavaScript Libraries In An Angular TypeScript Project] (2016-01-02)
 
* [https://www.thepolyglotdeveloper.com/2016/01/include-external-javascript-libraries-in-an-angular-2-typescript-project/ Include External JavaScript Libraries In An Angular TypeScript Project] (2016-01-02)
 +
 +
 +
 +
==Add to ASP.NET project==
 +
# Add>New Item>TypeScript JSON Configuration File (Do Not change its name)
 +
## in tsconfig.json change target library to a current version, like  "target": "es2015"
 +
# Add>New Item> TypeScript File (Name it anything - add.ts)
  
 
==References==
 
==References==

Revision as of 17:36, 3 November 2021

Full Title or Meme

A superscript of JavaScript that adds strong typing and other aids for good programming practice.

Context

JavaScript was becoming more than just a scripting language in 2019 with object-oriented features like asynchronous calls but without strong typing or other features of monder programming languages. since it seemed unlikely that strong typing would ever be included in javascript, typescript was created to add other features that supported good programming practices.


Examples


Add to ASP.NET project

  1. Add>New Item>TypeScript JSON Configuration File (Do Not change its name)
    1. in tsconfig.json change target library to a current version, like "target": "es2015"
  2. Add>New Item> TypeScript File (Name it anything - add.ts)

References