TypeScript revealed
TypeScript Revealed is a quick 100-page guide to Anders Hejlsberg's new take on JavaScript. With this brief, fast-paced introduction to TypeScript, .NET, Web and Windows 8 application developers who are already familiar with JavaScript will easily get up to speed with TypeScript and decide whet...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Berkeley, CA : New York :
Apress ; Distributed to the book trade worldwide by Springer
c2013.
|
Edición: | 1st ed. 2013. |
Colección: | Expert's voice in .NET.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629624806719 |
Tabla de Contenidos:
- Title Page; Copyright Page; Contents at a Glance; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Who Is This Book For?; What Do You Need to Know Before You Read This Book?; What Software Do You Need for This Book?; What Is the Structure of the Book?; CHAPTER 1 Getting Up to Speed with TypeScript; The Development of TypeScript; What TypeScript Is, Does, and Does Not Do; TypeScript vs. JavaScript Gotchas; Type Coercion Issues; Block Scope; Optional Semicolons and Bracket Placement; TypeScript vs. Other Compile-to-JavaScript Languages
- TypeScript vs. ECMAScriptInstallation; Visual Studio 2012; Installing the Compiler and TLS Extension; Using Web Essentials; Other Visual Studio Editions; Visual Studio 2012 Express Editions; Visual Studio 2010 Professional and Higher; WebMatrix; On Node.js; Sublime Text; From JavaScript to TypeScript; A Simple HTML+JS Page; TypeScript and IntelliSense; Errors and Declaration Files; jQuery, Ambient Declarations, and Reference Hints; A Little Code Structure with Classes and Modules; Summary; CHAPTER 2 The New Syntax; The Story So Far; The Type System; Primitive Types; The Any Type; Arrays
- Arrays of ArraysCasts; Ambient Declarations; Functions; Variations on a Signature; Positional Parameters; Optional Parameters; Rest Parameter; Function Overloads; Classes; Class Members; Properties and Fields; Methods; Arrow Functions; Constructors; Events; Access Modifiers; Instantiating Classes; Static Classes and Members; Object Literals vs. Anonymous Types; Inheritance; Overriding Methods from the Base Class; Interfaces; Using Interfaces as Function Types; Using Interfaces as Object Types; Combining Interfaces; Modules; Summary; CHAPTER 3 Working with TypeScript; The Compiler
- The File ListDeclaration Files; Has Someone Else Written It?; Substitute with an Ambient Declaration; Use the Compiler to Generate a Declaration File; Roll Your Own; TypeScript in Your Projects; In Your MSBuild File; The TypeScript Files and Their Dependencies; Compiler Instructions; Tweaking Your Existing Project File; The Web Site Project; In Your Web Sites; In the Development Life Cycle; Summary; APPENDIX A Webliography; Core Links; GitHub Projects; Notable Bugs and Discussions; Miscellaneous; Index