Create a gulpfile.js In the project root, create the file gulpfile.js:
Symbol.split A regular expression method that splits a string at the indices that match the regular expression. Called by the
Add TypeScript The next step is to add a folder for TypeScript.
Test Run the project. You should see a message when you type in the input boxes:
webpack
Validators in a single file interface StringValidator { isAcceptable(s: string): boolean; } let
jspm
Install typings for dependencies Angular 2 includes es6-shim for Promise support, but TypeScript still needs the types. Open a command prompt
Debug In Edge, press F12 and click the Debugger tab. Look in the first localhost folder, then src/app.ts
// Type definitions for [~THE LIBRARY NAME~] [~OPTIONAL VERSION NUMBER~] // Project: [~THE PROJECT NAME~] // Definitions by: [~YOUR
Page 19 of 29