HTML "Developer"
*.IE6{_content:"Hacker";}
Table time survivor
Ex Advertising Worker
UX
Frontend Developer
On the Hype Train
Developing JavaScript without the use of an IDE or a code editor with a full object inspector was a tedious and lengthy process that took hours.
JavaScript, as we know, was at its birth with backbone, angular, and knockout starting, and people started to look at jQuery as a simple framework.
But the main problem still remains, developers were losing hours in debugging because of simple mistakes with missing properties and wrong variable types.
The battle between the two main typed systems is intense, but in the end, TypeScript helps the crown of the champion.
// @flow
function square(n: number): number {
return n * n;
}
square(2);
Flow a basic comment on the first line of a .js file can be straightforward in the beginning.
type GetReturnValue<T> =
T extends (...args: any[]) =>
infer R ? R : T;
type getIDReturn =
GetReturnValue<typeof getID>
TypeScript is a new superset, with a new file type and a unique code structure and interfaces.
Angular 2+ was the Kickstarter of TypeScript in the frontend community.
Some of the big frontend frameworks now are written entirely in TypeScript or being converted to TypeScript.
Vue, for example, was written in Flow, and now for the V3 release will be 100% TypeScript.
Ember is now slowly transformed into TypeScript.
Do I need to say anything more?
Pros
Cons
To understand more about the Language itself, you can go to the official documentation and an unofficial book that could help you.
Some great projects helps you to start a new TypeScript component or library
The most significant advantage of TypeScript is that it can be used for many applications, but some really blows my mind.
AssemblyScript (TypeScript to WebAssembly)
https://github.com/AssemblyScript/assemblyscript
TypeScriptToLua (TypeScript traspiler to LUA)
https://github.com/TypeScriptToLua/TypeScriptToLua
Deno
https://github.com/denoland/deno