Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Latest commit

 

History

History
80 lines (44 loc) · 1.47 KB

typescript.md

File metadata and controls

80 lines (44 loc) · 1.47 KB
description
Defines structure for language pages

TypeScript

Description

Modern fast dynamic ECMAScript complaint language, it uses to replace JavaScript adding more strictness to make code more efficient and error-prone.

Toolset

  • NodeJS
  • ts
  • npm
  • npx
  • Webpack
  • Angular

Basic syntax

Sample of code flow.

C-like syntax with {;}

Comments

Code documentation syntax and agreements.

Project model

Modules, import or including. Major project files, common structure of library and application. Local environment.

Type system

* Dynamic or static * Strong or weak * Explicit or implicit

Scopes, variables lifecycle, copying and referencing, modificators like constant.

Generics.

Base types and data structures

Built-in types, most common collections.

Strings

Standard types to store strings. Tools and practices to splice, search, copy, replace textual data.

Execution flow statements

Loops, conditions and jump operator or recursion.

Subroutines

Functions, procedures, lambda expressions etc.

Object model

Object-oriented programming tools, syntax of classes.

Exceptions

Handling exceptions or errors. Major exceptions hierarchy.

Filesystem

Most common tools to deal with files and directories.

Introspection

Reflection and metaprogramming tools.

Asyncronous model

Asyncronous calls, multithreading, multiprocessing.

Style guides

Major naming and structuring points.