Microsoft to Announce TypeScript 3.0

Version 3.0 adds a new way to scale and structure user projects, as well as other improvements and changes
02 August 2018   538

Microsoft released TypeScript 3.0, a JavaScript add-on that introduces static types and reliable tools. The version adds a new way to scale and structure user projects, as well as other improvements and changes.

Innovations of TypeScript 3.0

  • Lists operation support, allowing the remaining parameters to be considered generic, deriving generics in the type of tuples.
  • The function of references to projects simplifies the work with scripts. It allowstsconfig.json files to reference other tsconfig.json files. In this case, TypeScript 3.0 will provide an API for linking to projects. However, for many simple applications and libraries, external tools usually aren't used. For them, the build mode was introduced. tsc --build (or its nickname tsc -b) takes a set of projects, builds them and their dependencies. When using this build mode, the flag must be set first and can be mapped to some other flags:
    • --verbose: displays each step of the build;
    • --dry: runs the assembly without distributing the files (this is useful with --verbose);
    • --clean: tries to delete files using the entered data;
    • --force: accelerates non-incremental reorganization of the project.
  • A new type is introduced - unknown, which can now be used in cases with the description of the least accessible type in TypeScript. This is useful for APIs that literally report: "The value can be anything, you need to validate it."
  • The interface of the error search function and the reasons for their occurrence have been improved. Also added support for JSX.

In June 2018 TypeScript debuted in the ranking of the top 100 TIOBE on the 93rd place. 

Visual Studio Code 1.30 Released

The solution has received new features, as well as improved support for JavaScript and TypeScript
14 December 2018   515

Microsoft has released the development environment Visual Studio Code 1.30. The tool has received new features, as well as improved support for JavaScript and TypeScript.

The search tool in the new version of the editor allows you to make multi-line queries. You can add a new line to the query by pressing Shift + Enter or simply by pasting text from the clipboard.

Custom headers and menu items in Linux are now activated by default. Since some menus may go beyond the boundaries of the screen, the developers added the ability to scroll.

Menu items designed to work with the settings have been moved to the title bar of the editor.

In the snippet, new comment variables are implemented, allowing to leave lines or blocks of notes based on the language of the code.

Also, the developers added the Go to Declaration and Peek Declaration commands to Visual Studio Code 1.30 in addition to the existing Go to Definition and Peek Definition. This is due to the fact that in some languages ​​the concepts of definition and declaration are fundamentally different.

In Visual Studio Code 1.30, you can work with TypeScript 3.2.2. Display of callbacks in JavaScript and TypeScript is improved. The new version of the editor displays which function they belong to.

The developers have improved the integration with the repository. In the new version of the program, you can change the tool that opens the file by clicking on the version control panel.

The Visual Studio Code 1.30 error detection and removal tool allows you to delete debug consoles for inactive sessions. Improved concept of variable substitution in launch.json configuration. The initial debug configuration itself has been simplified by hiding minor elements and adding a Quick Pick interface.

You can set the task to run automatically when you open the project folder. In addition, several new tasks have been added to the task management command section, for example, Tasks: Rerun Last Task, which allows you to restart the previous process.