The Wayback Machine - https://web.archive.org/web/20161004165710/https://github.com/Microsoft/TypeScript
Skip to content
TypeScript is a superset of JavaScript that compiles to clean JavaScript output. http://www.typescriptlang.org
TypeScript
Switch branches/tags
AddIsGlobalCompletionForSnippets BaseIndentationSupport Fix8518-Dev12 Fix8518-U3 Fix8518 Fix8634 Fix10544 FixEs6ImportsOfCommonJS FixTripleSlashCompletions IsValidSnippetInsertionAtPosition IsValidSnippetInsertionAtPositionMaster JSCompletionCommitOnEnterFix JSDocFunctionDescriptions analyzer anyDefaultsToAny aquiredts asyncFunctions asyncSimpleArrow attemptToUseNoUnusedFlags await_undefined bindOperator buildNewlines callback-this-parameters-in-lib captureArguments class-per-node classic_at_types codeCoverage codegen-extensions containerMadness containerSanity contextually-type-implemented-properties contextually-type-inherited-properties-WIP contextuallyTypeImplementedProperties2 controlFlowCacheFix controlFlowCaching controlFlowImplicitAny controlFlowLetVar controlFlowNestedLoops dbaeumer/getDependencies dbaeumer/9125 dbaeumer/11348 declarationMerging declarations-moduleOut declarations decoratorClassification decoratorsExperiment deferredBinding destructure_catch discover-typings-exts downWithDreadedCurlyCurly emitDependencyFile expandDocTemplateCoverage experimentalTransforms explicitly_included_globs_2.0 extensibility-model extension-loading externalModuleNameCompletions factoryPerf findRefInDestructuring_WIP fix-format-settings-WIP fix-lookup-priority fix_lib_tests fix_tests fix8579_staticPropertyClassExp fix10193 fix11035_2.0.5 fix11081 fixClassExtendsNullDeclEmit2 fixSuperInAsyncMethod fixUnclosedJsxDebugFailure flattenMergedAliases forEachForEachUseForOf getIndentationAccountsForJSDoc getOrUpdate gh-pages go_to_implementation_work3 goto_this handelIntersection importOption improve-error-for-property-referencing-containing-type includeupdatescript incompleteObjectBindingPatterns indexersAndContextualTypesAndStuff inferStringLiteralsForConst infiniteExpansionCaching inherit-construct-signature-from-extended-interface interfaceClassMerging internalModifier javaScriptModules jsDocSupport jsInference jsonParsing jsx_quick_info lhsImportFix limitThisTypes lineEndingsAreAnUnsolvedProblemInComputing lint-extensions lintByDefault listEmit listEmittedFiles listOptionParsing literalTypeLocations literalTypeWidening ls-extensions lshost_realpath_test lstest makeGetNewLineRequired map_wip map map3 map4 maps master master_11192 matchableRelation mergedClassFunction minfy move-writer-out-of-checker multipleDefaultFunctionsOfDifferingNames narrow-on-element-access-of-known-property narrow-readonly-properties-of-const-locals-in-function-expressions narrow-type-constraints narrowAnyWithAllTypeGuards narrowingOfDottedNames navbar_refactor navbar_refactor_2.0 navigation_bar_class_expression noVoidBranches nonTSExtensions nothingType object-rest-spread-WIP object-spread-WIP object-spread optionalTypes osx-single-worker packageDeclaration2 parallel-lint parenthesizeTypeAssertions perf_tracing perfFixes port-acquiredts-and-scriptkind-from-master-to-release-1.8 prefer-typings-to-js projectTestsUpdate pvb/codeaction/api pvb/discoverCodeActions react_emit_entities_wip react_whitespace reactOverload real_path release-1.0.3 release-1.1 release-1.3 release-1.4 release-1.5 release-1.6 release-1.7 release-1.8 release-2.0 release-2.0.5 release-.20 removeCachePathFromDiscoverTypings revertNoCustomPromise roottsconfig runtests_bail services_modules show shrink-checker-WIP sourceMapOfClass splitAbstractTest02 spreadOperatorSourceMap strickNullDestructuringDeclaration strictModeInBinder symbol_table_map syntaxKindLiterals testTravis textSpan this-parameters-in-lib thisTypesInBasePropAndContainerOfBase throttleTypingsInstallerRequestsFinal transforms-merge transforms-minGenerators transforms-transformer-es6-generators transforms travis-osx-fun tscJsFiles tslintSupport tsserverVS-Types2.0 type-relationship-api typeGuardsViaPropertyAccess typePredicateOverloadCompat typePreviews unknown_identifier_imports unused_wip update-browserify-for-gulp-typescript-3 update-external-project-WIP update-template updateCommentNamedImportAndExport updateES6DotDDotTsForFinalDraft useDecoratorsInShims weswigham-patch-1 wip-reactOverload
Nothing to show
Latest commit e38f8c9 Oct 4, 2016 @andy-ms andy-ms committed on GitHub Merge pull request #11357 from Microsoft/lint_equals
Lint whitespace around "="
Permalink
Failed to load latest commit information.
.vscode [Transforms] Merge master 07/11 into transform (#9697) Jul 18, 2016
bin Moved LKG folder to lib Jul 27, 2015
doc Add 'wiki' and 'handbook' directories to the docs folder with READMEs. Feb 9, 2016
lib update LKG Sep 27, 2016
scripts Handle `OmittedExpression` nodes in binding patterns Sep 9, 2016
src Lint whitespace around "=" Oct 4, 2016
tests Merge pull request #11252 from Microsoft/mapOnTuples Oct 4, 2016
.editorconfig Use CRLF, not LF. Mar 2, 2015
.gitattributes Never normalize end-of-lines on clone/commit. May 31, 2015
.gitignore Merge branch 'fixUnionTypeCallSignature' of https://github.com/ericts… Sep 14, 2016
.mailmap [Release-2.0] Merge master into Release-2.0 (#10347) Aug 18, 2016
.npmignore Reorg Jakefile.js May 3, 2016
.travis.yml Remove osx Sep 26, 2016
AUTHORS.md [Release-2.0] Merge master into Release-2.0 (#10347) Aug 18, 2016
CONTRIBUTING.md Removed Code of Conduct from contributing, since readme is more obvious Sep 13, 2016
CopyrightNotice.txt Add snapshot of compiler sources Jul 13, 2014
Gulpfile.ts Add newlines between concatted files in lib.d.ts Oct 2, 2016
Jakefile.js merge with origin/master Sep 27, 2016
LICENSE.txt Add snapshot of compiler sources Jul 13, 2014
README.md move to contribute header Sep 13, 2016
ThirdPartyNoticeText.txt [Transforms] Merge master 07/11 into transform (#9697) Jul 18, 2016
issue_template.md [Transforms] Merge master 07/11 into transform (#9697) Jul 18, 2016
package.json Update preferConstRule to use getCombined*X*Flags Sep 8, 2016
pull_request_template.md No bold "Fixes" Feb 19, 2016
tslint.json Lint whitespace around "=" Oct 4, 2016

README.md

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.

You can't perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.