TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.

Bạn đang xem: Ts


Property "name" does not exist on type " firstName: string; lastName: string; role: string; ".2339Property "name" does not exist on type " firstName: string; lastName: string; role: string; ".
Property "name" does not exist on type " firstName: string; lastName: string; role: string; ".2339Property "name" does not exist on type " firstName: string; lastName: string; role: string; ".

JavaScript and More

TypeScript adds additional syntax to lớn JavaScript to tư vấn a tighter integration with your editor. Catch errors early in your editor.


A Result You Can Trust

TypeScript code converts lớn JavaScript, which runs anywhere JavaScript runs: In a browser, on Node.js or Deno and in your apps.


Safety at Scale

TypeScript understands JavaScript and uses type inference lớn give you great tooling without additional code.


Apply types to your JavaScript project incrementally, each step improves editor support & improves your codebase.


Let's take this incorrect JavaScript code, và see how TypeScript can catch mistakes in your editor.


Describe Your Data

Describe the shape of objects & functions in your code.

Making it possible to lớn see documentation & issues in your editor.


First, we were surprised by the number of small bugs we found when converting our code.

Second, we underestimated how powerful the editor integration is.

TypeScript was such a boon to our stability and sanity that we started using it for all new code within days of starting the conversion.


Felix Rieseberg at Slack covered the transition of their desktop ứng dụng from JavaScript khổng lồ TypeScript in their blog

Read
*

*

TypeScript was used by 78% of the 2020 State of JS respondents, with 93% saying they would use it again.

Xem thêm: Con Nhà Huỳnh Đế Cô Quạnh Là Gì ? Luận Tính Cách, Hình Tướng Qua Mệnh Ngũ Đế

TypeScript was given the award for “Most Adopted Technology” based on year-on-year growth.