4.1.2 • Published 2 days ago

typescript v4.1.2

Weekly downloads
15,513,136
License
Apache-2.0
Repository
github
Last release
2 days ago

Build Status npm version Downloads

TypeScript

Join the chat at https://gitter.im/Microsoft/TypeScript

TypeScript is a language for application-scale JavaScript. TypeScript adds optional types, classes, and modules to JavaScript. TypeScript supports tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the playground, and stay up to date via our blog and Twitter account.

Installing

For the latest stable version:

npm install -g typescript

For our nightly builds:

npm install -g typescript@next

Contribute

There are many ways to contribute to TypeScript.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Building

In order to build the TypeScript compiler, ensure that you have Git and Node.js installed.

Clone a copy of the repo:

git clone https://github.com/Microsoft/TypeScript.git

Change to the TypeScript directory:

cd TypeScript

Install Gulp tools and dev dependencies:

npm install -g gulp
npm install

Use one of the following to build and test:

gulp local            # Build the compiler into built/local 
gulp clean            # Delete the built compiler 
gulp LKG              # Replace the last known good with the built one.
                      # Bootstrapping step to be executed when the built compiler reaches a stable state.
gulp tests            # Build the test infrastructure using the built compiler. 
gulp runtests         # Run tests using the built compiler and test infrastructure. 
                      # You can override the host or specify a test for this command. 
                      # Use host=<hostName> or tests=<testPath>. 
gulp runtests-browser # Runs the tests using the built run.js file. Syntax is gulp runtests. Optional
                        parameters 'host=', 'tests=[regex], reporter=[list|spec|json|<more>]'.
gulp baseline-accept  # This replaces the baseline test results with the results obtained from gulp runtests.
gulp lint             # Runs tslint on the TypeScript source.
gulp help             # List the above commands. 

Usage

node built/local/tsc.js hello.ts

Roadmap

For details on our planned features and future direction please refer to our roadmap.

@angular-devkit/build-optimizerphoto-processing-ts@joelcox22/boilerplate@joelcox22/boilerplate-cdkzfzn-uivideojs-plugin-markers@jannes/tsdevhomebridge-smart-trainer@qhnu/ts-lib-templateriyenzyapi2servicejimp-roundedcornerssimplerrldu-gulpfunctionsjootsliboddddtest-1251test1251thisistestreact-moisedsrmcryptsqs-s3-messangervscode-jasmine-test-runnertxmlcsufferfest-apinoodles-normnns-bot@michedot/eslint-pluginpw-grammarreact-spinnterreact-crud-componentsreact-custom-card-test1tgcts-mathiumjs@piotrowiczmateusz/common-modules@aschrimpf-usgs/usgs-uiziflow-js-microservicecarberry-ui-componentsanghami-infra@jyulzz/portfolio3marigold-buildbeta-ui-mobiledfocommonlibdefi-finder-calculatorcunei-styled-ui4sgorgchart.tsorganizationchartplatform-orderspretty-typescriptmz-react-pdf-testtb1trackotslibraryfratellipitycclux-components-generategrid-table1imiconnect-react-native-libraryvidelanguse-audio-frequencyyarjclreact-lazy-load-images-demo-packageinstance_of_classini-design-tes@qmp/compilervoice-recognition-reactnwb-spikeqroda-sdkqroda-sdk-v1oev-test-plugin-websprites-webpack-pluginrockywu-uiruntime-osmiumsg-cafevu-style-guidezsbpsdkqinshixixing-parcelweiboauth@tradeling/gen-sdk@aukindustries/auk-components@igbominadeveloper/eslint-config-vuets@ev_connor_robertson/ev-components@fairfx/spend-gateway-utilscf-formservice@towbe/js-tools@wingsuit-designsystem/dsreact-doctoolsreact-yii-toolsoapi2tswind-map-sdkreact-antd-scripts-newreact-shared-text@kasama.chenkaow/pest-jshihakunea-chartng-mvpk-cardreact-native-bravenpm-medgo-puppeteerpvpetrov-grid-app
4.1.2

5 days ago

4.1.1-rc

21 days ago

4.0.5

29 days ago

4.1.0-dev.20201010

2 months ago

4.1.0-dev.20201009

2 months ago

4.1.0-dev.20201007

2 months ago

4.1.0-dev.20201008

2 months ago

4.1.0-dev.20201006

2 months ago

4.1.0-dev.20201005

2 months ago

4.1.0-dev.20201004

2 months ago

4.1.0-dev.20201003

2 months ago

4.1.0-dev.20201002

2 months ago

4.1.0-dev.20201001

2 months ago

4.1.0-dev.20200930

2 months ago

4.1.0-dev.20200929

2 months ago

4.1.0-dev.20200928

2 months ago

4.1.0-dev.20200927

2 months ago

4.1.0-dev.20200926

2 months ago

4.1.0-dev.20200925

2 months ago

4.1.0-dev.20200924

2 months ago

4.1.0-dev.20200923

2 months ago

4.1.0-dev.20200921

2 months ago

4.1.0-dev.20200920

2 months ago

4.1.0-dev.20200919

2 months ago

4.0.3

2 months ago

4.1.0-beta

2 months ago

4.1.0-dev.20200918

2 months ago

4.1.0-dev.20200917

2 months ago

4.1.0-dev.20200916

2 months ago

4.1.0-dev.20200915

2 months ago

4.1.0-dev.20200914

2 months ago

4.1.0-dev.20200913

2 months ago

4.1.0-dev.20200911

2 months ago

4.1.0-dev.20200910

3 months ago

4.1.0-dev.20200909

3 months ago

4.1.0-dev.20200908

3 months ago

4.1.0-dev.20200907

3 months ago

4.1.0-dev.20200906

3 months ago

4.1.0-dev.20200905

3 months ago

4.1.0-dev.20200904

3 months ago

4.1.0-dev.20200903

3 months ago

4.1.0-dev.20200902

3 months ago

4.1.0-dev.20200901

3 months ago

4.1.0-dev.20200831

3 months ago

4.1.0-dev.20200830

3 months ago

4.1.0-dev.20200829

3 months ago

4.1.0-dev.20200828

3 months ago

4.1.0-dev.20200827

3 months ago

4.1.0-dev.20200826

3 months ago

4.1.0-dev.20200825

3 months ago

4.1.0-dev.20200824

3 months ago

4.1.0-dev.20200823

3 months ago

4.1.0-dev.20200822

3 months ago

4.1.0-dev.20200821

3 months ago

4.0.2

3 months ago

4.1.0-dev.20200820

3 months ago

4.1.0-dev.20200819

3 months ago

4.1.0-dev.20200818

3 months ago

4.1.0-dev.20200817

3 months ago

4.1.0-dev.20200816

3 months ago

4.1.0-dev.20200815

3 months ago

4.1.0-dev.20200814

3 months ago

4.1.0-dev.20200813

3 months ago

4.1.0-dev.20200812

3 months ago

4.1.0-dev.20200811

4 months ago

4.1.0-dev.20200810

4 months ago

4.1.0-dev.20200808

4 months ago

4.1.0-dev.20200809

4 months ago

4.1.0-dev.20200807

4 months ago

4.0.1-rc

4 months ago

4.1.0-dev.20200806

4 months ago

4.1.0-dev.20200805

4 months ago

4.1.0-dev.20200804

4 months ago

4.0.0-dev.20200803

4 months ago

4.0.0-dev.20200802

4 months ago

4.0.0-dev.20200801

4 months ago

4.0.0-dev.20200731

4 months ago

4.0.0-dev.20200730

4 months ago

4.0.0-dev.20200729

4 months ago

4.0.0-dev.20200728

4 months ago

4.0.0-dev.20200727

4 months ago

4.0.0-dev.20200726

4 months ago

4.0.0-dev.20200725

4 months ago

4.0.0-dev.20200724

4 months ago

4.0.0-dev.20200722

4 months ago

4.0.0-dev.20200721

4 months ago

4.0.0-dev.20200720

4 months ago

4.0.0-dev.20200719

4 months ago

4.0.0-dev.20200718

4 months ago

4.0.0-dev.20200717

4 months ago

3.9.7

4 months ago

4.0.0-dev.20200712

5 months ago

4.0.0-dev.20200715

4 months ago

4.0.0-dev.20200714

4 months ago

4.0.0-dev.20200711

5 months ago

4.0.0-dev.20200710

5 months ago

4.0.0-dev.20200709

5 months ago

4.0.0-dev.20200708

5 months ago

4.0.0-dev.20200707

5 months ago

4.0.0-dev.20200706

5 months ago

4.0.0-dev.20200705

5 months ago

4.0.0-dev.20200704

5 months ago

4.0.0-dev.20200703

5 months ago

4.0.0-dev.20200702

5 months ago

3.9.6

5 months ago

4.0.0-dev.20200701

5 months ago

4.0.0-dev.20200630

5 months ago

4.0.0-dev.20200629

5 months ago

4.0.0-dev.20200628

5 months ago

4.0.0-dev.20200627

5 months ago

4.0.0-beta

5 months ago

4.0.0-dev.20200626

5 months ago

4.0.0-dev.20200625

5 months ago

4.0.0-dev.20200624

5 months ago

4.0.0-dev.20200623

5 months ago

4.0.0-dev.20200622

5 months ago

4.0.0-dev.20200621

5 months ago

4.0.0-dev.20200620

5 months ago

4.0.0-dev.20200614

5 months ago

4.0.0-dev.20200613

5 months ago

4.0.0-dev.20200615

5 months ago

4.0.0-dev.20200612

6 months ago

4.0.0-dev.20200611

6 months ago

4.0.0-dev.20200610

6 months ago

4.0.0-dev.20200609

6 months ago

4.0.0-dev.20200608

6 months ago

4.0.0-dev.20200607

6 months ago

4.0.0-dev.20200606

6 months ago

4.0.0-dev.20200605

6 months ago

3.9.5

6 months ago

4.0.0-dev.20200604

6 months ago

4.0.0-dev.20200603

6 months ago

4.0.0-dev.20200602

6 months ago

4.0.0-dev.20200601

6 months ago

4.0.0-dev.20200531

6 months ago

4.0.0-dev.20200530

6 months ago

4.0.0-dev.20200529

6 months ago

3.9.4

6 months ago

4.0.0-dev.20200528

6 months ago

4.0.0-dev.20200527

6 months ago

4.0.0-dev.20200526

6 months ago

4.0.0-dev.20200525

6 months ago

4.0.0-dev.20200524

6 months ago

4.0.0-dev.20200523

6 months ago

4.0.0-dev.20200522

6 months ago

4.0.0-dev.20200521

6 months ago

4.0.0-dev.20200520

6 months ago

3.9.3

6 months ago

4.0.0-dev.20200519

6 months ago

4.0.0-dev.20200518

6 months ago

4.0.0-dev.20200517

6 months ago

4.0.0-dev.20200516

6 months ago

4.0.0-dev.20200514

6 months ago

3.9.2

7 months ago

4.0.0-dev.20200512

7 months ago

4.0.0-dev.20200511

7 months ago

4.0.0-dev.20200510

7 months ago

4.0.0-dev.20200509

7 months ago

4.0.0-dev.20200508

7 months ago

4.0.0-dev.20200507

7 months ago

4.0.0-dev.20200506

7 months ago

4.0.0-dev.20200505

7 months ago

4.0.0-dev.20200504

7 months ago

4.0.0-dev.20200503

7 months ago

4.0.0-dev.20200502

7 months ago

4.0.0-dev.20200501

7 months ago

4.0.0-dev.20200430

7 months ago

4.0.0-dev.20200429

7 months ago

3.9.1-rc

7 months ago

4.0.0-dev.20200428

7 months ago

3.9.0-dev.20200427

7 months ago

3.9.0-dev.20200426

7 months ago

3.9.0-dev.20200424

7 months ago

3.9.0-dev.20200425

7 months ago

3.9.0-dev.20200423

7 months ago

3.9.0-dev.20200422

7 months ago

3.9.0-dev.20200421

7 months ago

3.9.0-dev.20200420

7 months ago

3.9.0-dev.20200419

7 months ago

3.9.0-dev.20200418

7 months ago

3.9.0-dev.20200417

7 months ago

3.9.0-dev.20200416

7 months ago

3.9.0-dev.20200415

7 months ago

3.9.0-dev.20200414

7 months ago

3.9.0-dev.20200413

8 months ago

3.9.0-dev.20200412

8 months ago

3.9.0-dev.20200411

8 months ago

3.9.0-dev.20200410

8 months ago

3.9.0-dev.20200409

8 months ago

3.9.0-dev.20200408

8 months ago

3.9.0-dev.20200407

8 months ago

3.9.0-dev.20200406

8 months ago

3.9.0-dev.20200405

8 months ago

3.9.0-dev.20200404

8 months ago

3.9.0-dev.20200403

8 months ago

3.9.0-dev.20200402

8 months ago

3.9.0-dev.20200330

8 months ago

3.9.0-dev.20200329

8 months ago

3.9.0-dev.20200328

8 months ago

3.9.0-beta

8 months ago

3.9.0-dev.20200327

8 months ago

3.9.0-dev.20200326

8 months ago

3.9.0-dev.20200325

8 months ago

3.9.0-dev.20200324

8 months ago

3.9.0-dev.20200323

8 months ago

3.9.0-dev.20200322

8 months ago

3.9.0-dev.20200321

8 months ago

3.9.0-dev.20200320

8 months ago

3.9.0-dev.20200319

8 months ago

3.9.0-dev.20200318

8 months ago

3.9.0-dev.20200317

8 months ago

3.9.0-dev.20200316

8 months ago

3.9.0-dev.20200315

8 months ago

3.9.0-dev.20200314

9 months ago

3.9.0-dev.20200313

9 months ago

3.9.0-dev.20200312

9 months ago

3.9.0-dev.20200311

9 months ago

3.9.0-dev.20200310

9 months ago

3.9.0-dev.20200309

9 months ago

3.9.0-dev.20200308

9 months ago

3.9.0-dev.20200306

9 months ago

3.9.0-dev.20200304

9 months ago

3.9.0-dev.20200305

9 months ago

3.9.0-dev.20200303

9 months ago

3.9.0-dev.20200229

9 months ago

3.8.3

9 months ago

3.9.0-dev.20200228

9 months ago

3.9.0-dev.20200227

9 months ago

3.9.0-dev.20200226

9 months ago

3.9.0-dev.20200225

9 months ago

3.9.0-dev.20200223

9 months ago

3.9.0-dev.20200224

9 months ago

3.9.0-dev.20200222

9 months ago

3.9.0-dev.20200221

9 months ago

3.8.2

9 months ago

3.9.0-dev.20200220

9 months ago

3.9.0-dev.20200219

9 months ago

3.9.0-dev.20200215

9 months ago

3.9.0-dev.20200214

9 months ago

3.9.0-dev.20200213

10 months ago

3.9.0-dev.20200212

10 months ago

3.8.0-dev.20200211

10 months ago

3.8.0-dev.20200208

10 months ago

3.8.0-dev.20200207

10 months ago

3.8.1-rc

10 months ago

3.8.0-dev.20200206

10 months ago

3.8.0-dev.20200205

10 months ago

3.8.0-dev.20200204

10 months ago

3.8.0-dev.20200201

10 months ago

3.8.0-dev.20200131

10 months ago

3.8.0-dev.20200130

10 months ago

3.8.0-dev.20200128

10 months ago

3.8.0-dev.20200125

10 months ago

3.8.0-dev.20200124

10 months ago

3.6.5

10 months ago

3.8.0-dev.20200123

10 months ago

3.8.0-dev.20200122

10 months ago

3.8.0-dev.20200119

10 months ago

3.8.0-dev.20200118

10 months ago

3.8.0-dev.20200117

10 months ago

3.8.0-dev.20200116

10 months ago

3.7.5

10 months ago

3.8.0-dev.20200115

10 months ago

3.8.0-dev.20200114

11 months ago

3.8.0-dev.20200111

11 months ago

3.8.0-beta

11 months ago

3.8.0-dev.20200110

11 months ago

3.8.0-dev.20200109

11 months ago

3.8.0-dev.20200108

11 months ago

3.8.0-dev.20200107

11 months ago

3.8.0-dev.20200104

11 months ago

3.8.0-dev.20200103

11 months ago

3.8.0-dev.20200101

11 months ago

3.8.0-dev.20191231

11 months ago

3.8.0-dev.20191228

11 months ago

3.8.0-dev.20191224

11 months ago

3.8.0-dev.20191223

11 months ago

3.8.0-dev.20191221

11 months ago

3.7.4

11 months ago

3.8.0-dev.20191220

11 months ago

3.8.0-dev.20191219

11 months ago

3.8.0-dev.20191218

11 months ago

3.8.0-dev.20191217

11 months ago

3.8.0-dev.20191216

11 months ago

3.8.0-dev.20191214

12 months ago

3.8.0-dev.20191213

12 months ago

3.8.0-dev.20191212

12 months ago

3.8.0-dev.20191211

12 months ago

3.8.0-dev.20191210

12 months ago

3.8.0-dev.20191207

12 months ago

3.8.0-dev.20191206

12 months ago

3.8.0-dev.20191205

12 months ago

3.7.3

12 months ago

3.8.0-dev.20191204

12 months ago

3.8.0-dev.20191203

12 months ago

3.8.0-dev.20191128

12 months ago

3.8.0-dev.20191126

12 months ago

3.7.2

1 year ago

3.7.1-rc

1 year ago

3.6.4

1 year ago

3.7.0-beta

1 year ago

3.6.3

1 year ago

3.6.2

1 year ago

3.6.1-rc

1 year ago

3.6.0-beta

1 year ago

3.5.3

1 year ago

3.5.2

1 year ago

3.5.1

1 year ago

3.5.0-rc

2 years ago

3.4.5

2 years ago

3.4.4

2 years ago

3.4.3

2 years ago

3.4.2

2 years ago

3.4.1

2 years ago

3.3.4000

2 years ago

3.4.0-rc

2 years ago

3.3.3333

2 years ago

3.3.3

2 years ago

3.3.1

2 years ago

3.3.0-rc

2 years ago

3.2.4

2 years ago

3.2.2

2 years ago

3.2.1

2 years ago

3.2.0-rc

2 years ago

3.1.6

2 years ago

3.1.5

2 years ago

3.1.4

2 years ago

3.1.3

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.0.3

2 years ago

3.0.1

2 years ago

3.0.0-rc

2 years ago

2.9.2

2 years ago

2.9.1

2 years ago

2.8.4

2 years ago

2.9.0-rc

3 years ago

2.8.3

3 years ago

2.8.1

3 years ago

2.8.0-rc

3 years ago

2.7.2

3 years ago

2.7.1

3 years ago

2.7.0-rc

3 years ago

2.6.2

3 years ago

2.6.1

3 years ago

2.6.0-rc

3 years ago

2.5.3

3 years ago

2.5.2

3 years ago

2.5.1

3 years ago

2.5.0

3 years ago

2.4.2

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.4

3 years ago

2.3.3

4 years ago

2.3.2

4 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.1.6

4 years ago

2.2.0

4 years ago

2.1.5

4 years ago

2.1.4

4 years ago

2.0.10

4 years ago

2.0.9

4 years ago

2.1.1

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.0

4 years ago

1.9.0

5 years ago

1.8.10

5 years ago

1.8.9

5 years ago

1.8.7

5 years ago

1.8.6

5 years ago

1.8.5

5 years ago

1.8.2

5 years ago

1.8.0

5 years ago

1.7.5

5 years ago

1.7.3

5 years ago

1.6.2

5 years ago

1.6.0-beta

5 years ago

1.5.3

5 years ago

1.5.0-beta

6 years ago

1.5.0-alpha

6 years ago

1.4.1

6 years ago

1.3.0

6 years ago

1.1.0-1

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.9.7

7 years ago

0.9.5

7 years ago

0.9.1-1

7 years ago

0.9.1

7 years ago

0.9.0-1

7 years ago

0.9.0

7 years ago

0.8.3

8 years ago

0.8.2

8 years ago

0.8.1-1

8 years ago

0.8.1

8 years ago

0.8.0

8 years ago