JavaScript/TypeScript

Stay organized with collections Save and categorize content based on your preferences.

Languages

Javascript languages used by Marketing

EcmaScript

As of September 2016, new code is expected to be written in ES6 and transpiled down to ES5 for production. See ES6 Learning. At the time of this articles writing, support for the language_out Closure compiler feature is still pending in Goro jscomp. See cl/129027470

TypeScript

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It has many benefits such as compile time type checking, less verbose syntax, and support within many IDEs for linting as you type the code.

Projects written in TypeScript need to whitelisted through a short process involving adding your project to /google3/javascript/angular2/BUILD. Example CL

TypeScript Editor plugins are thin shims between an editor's extension points and the compiler API that make a developer's life easy and increase the productivity.