Advanced TypeScript Programming Projects
Build 9 different apps with TypeScript 3 and JavaScript frameworks such as Angular, React, and Vue
Peter O'Hanlon
BIRMINGHAM - MUMBAI
Advanced TypeScript Programming Projects
Copyright 2019 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Richa Tripathi
Acquisition Editor: Alok Dhuri
Content Development Editor: Tiksha Sarang
Senior Editor: Afshaan Khan
Technical Editor: Pradeep Sahu
Copy Editor: Safis Editing
Project Coordinator: Prajakta Naik
Proofreader: Safis Editing
Indexer: Pratik Shirodkar
Production Designer: Arvindkumar Gupta
First published: July 2019
Production reference: 1250719
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78913-304-2
www.packtpub.com
To my wife, Jennifer, for all the love and patience she has shown while I have been locked away, slaving over a hot keyboard each day. As always, you are wise, kind, loving, and funny, and it is a true joy being your husband. To Catherine and Hannah, my daughters. The greatest pleasure a parent can have is seeing a child growing up to be even half as wonderful as I find you two. Wonderful is the right word, because you both fill me with wonder.
To Harvey what can I say but "Woof!"
Packt.com
Subscribe to our online digital library for full access to over 7,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Fully searchable for easy access to vital information
Copy and paste, print, and bookmark content
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Peter O'Hanlon has been a professional developer for nearly 30 years. In this time, he has developed desktop and web applications of all types and sizes. During his development career, Peter has worked with languages such as C, C++, BASIC, Pascal, and JavaScript. For the last 18 years or so, Peter has concentrated on C# WPF, JavaScript, and now TypeScript. Over the years, Peter has been a Code Project MVP several times, a member of the Intel Innovator program, as well as competing in the Intel Ultimate Coder 2 contest. Peter is always keen to embrace new technologies and languages, which has led him to be actively involved in technologies such as augmented and mixed reality, computer vision, artificial intelligence, and gesture recognition.
About the reviewer
Nadun Indunil is a software engineer at Sysco Labs, Sri Lanka. As a software engineer, he is responsible for the development and management of AWS-related software and tools. He holds a BSc (Hons.) degree in engineering from the University of Moratuwa (Sri Lanka). Nadun is an AWS Certified Solutions Architect and an open source contributor. He has contributed to many open source JavaScript projects, and maintains a few as well.
I would like to express my special gratitude to Packt Publishing, who gave me the golden opportunity to do the review of Advanced TypeScript 3 Programming, which has helped me and taught me about so many new things. I am really thankful to them.
Secondly, I would also like to thank my parents, friends, and fiance, who helped me a lot in finalizing this project within the limited time frame.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
This is a book about TypeScript; but then again, you got that from the title. But it's more than just a book about TypeScript. This is a book about how TypeScript can be used to go beyond basic examples. That means that this is a book about topics that are just that little bit harder than you might already have covered in your first forays into the world of TypeScript.
So, we could probably rephrase that opening sentence to "This is a book about TypeScript and some of the fun and cool ways that you can use TypeScript with technologies that are more advanced than ones I've been using before".
Upfront, I will say that this book is not a book about how to program in Angular, React, Vue, or ASP.NET Core. Those are big topics that deserve their own separate books (indeed, at the end of each chapter, I do my best to point you toward other resources that will help you learn these technologies on a much deeper level than the brief chapters we will have on them). Instead, for Angular and React, I try to limit the introduction of new features to no more than five new concepts per chapter. Where we are using a technology such as Bootstrap, which has a technology-specific implementation, we will use the library that is most appropriate , such as reactstrap for React . We do this because these libraries have been designed to work with the user interface (UI
Next page