My Account Log in

2 options

Ultimate Typescript Handbook : Build, Scale and Maintain Modern Web Applications with Typescript / Dan Wellman.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central Academic Complete Available online

View online
Format:
Book
Author/Creator:
Wellman, Dan, author.
Language:
English
Subjects (All):
TypeScript (Computer program language).
Physical Description:
1 online resource (239 pages)
Edition:
First edition.
Place of Publication:
Delhi, India : Orange Education Pvt Ltd, AVA, [2023]
Summary:
This book provides a comprehensive guide to TypeScript, a programming language that extends JavaScript with powerful features like static typing, classes, and interfaces. The book is divided into thirteen chapters that cover everything from setting up a development environment to building an Angular app with TypeScript. We start with an introduction to TypeScript and its benefits and go on to explain how TypeScript can help developers write more maintainable, scalable code and catch errors before they make it to production. The book then dives into more technical topics like basic type annotations, using the TypeScript compiler, advanced features like enums and interfaces, and manipulating types. The book then discusses chapters on classes and control flow analysis that are particularly helpful for developers looking to build more complex applications. The book teaches by example, with numerous code examples that illustrate the main concepts and approaches towards writing TypeScript programs and codes, and finishes with a comprehensive practical example that shows step-by-step development of a modern web application using TypeScript and Angular.
Contents:
Intro
Cover Page
Title Page
Copyright Page
Dedication Page
About the Author
Technical Reviewers
Acknowledgements
Preface
Errata
Table of Contents
1. Introduction to TypeScript and its Benefits
Introduction
Structure
Introduction to TypeScript
A short history of TypeScript
Main components of TypeScript
TypeScript’s type system
Advantages of using TypeScript
Catching bugs
Readability
Refactoring
Future language features
Disadvantages of TypeScript
The ways in which TypeScript prevents bugs
Steps to begin using TypeScript
Type-driven development
Conclusion
References
2. Setting up a Development Environment
Installing dependencies
Version numbers
Installing Node.js On Windows
Installing Node.js on Mac
Installing a code editor
Installing TypeScript globally
Creating a new TypeScript project
The tsconfig.json file
Installing TypeScript locally to a project
Configuring TypeScript with tsconfig.json
Default enabled configuration options
target
module
esModuleInterop
forceConsistentCasingInFileNames
strict
skipLibCheck
Commonly used configuration options
files
include
exclude
baseUrl
rootDir
paths
outDir
resolveJsonModule
Top-level configuration options
Updating the project configuration
Enabling TypeScript checking in JavaScript
Default behavior
Enabling type checking
Adding JSDoc annotations
Example project structure and use
3. Basic Type Annotations
Primitive types
BigInt
Boolean
Number
Null
String
Symbol
Undefined
The any type
The unknown type
The never type
The as operator
Down-casting
Compound casting
Older type-casting syntax.
Union types
Literal types
Literal union types
Type aliases
Type assertion
Non-null assertion operator
4. Using the TypeScript Compiler
Compiling our TypeScript files
Inspecting compiled files
CLI flags
version
listFilesOnly
showConfig
help
Using watch mode
watchFile
watchDirectory
fallbackPolling
synchronousWatchDirectory
excludeDirectories
excludeFiles
assumeChangesOnlyAffectDirectDependencies
Environment variables
Building projects
Build-specific flags
Integrating with other build tools
Integrating with webpack
TypeScript webpack configuration
Using third-party libraries
Generating .d.ts files
Generating d.ts files from .js files
5. Enums, Interfaces, and Namespaces
Interfaces
Interface merging
Extending interfaces
Namespaces
Namespace merging
Enums
Numeric enums
Reverse mapping
Exhaustiveness and the never type
String enums
Heterogeneous enums
Computed and constant enums
Literal enums
Inlining enums
Using the keyof operator
6. Objects, Arrays, and Tuples in TypeScript
Arrays
Array type inference
Read-only arrays
Tuples
Optional elements in tuples
Rest elements in tuples
Read-only tuples
Object types
Property modifiers
Index signatures
Intersections
Generic object types
Readonly utility type
7. Functions in TypeScript
Parameter Type and Return Type Annotations
Type Inference for Functions
Arrow Functions
Type Inference for Arrow Functions
Optional Parameters
Rest Parameters
Rest Arguments
Destructured Parameters.
Void return type
Function Type Expressions
Call signatures
Function Type Interfaces
This Parameter
Function overloads
Overloading Arrow Functions
Generator functions
Generic functions
Generic Function Constraints
8. Classes in TypeScript
Class Declarations
Class Expressions
Constructors
Constructor Overloading
Parameter Properties
Access Modifiers
Private Members in JavaScript
Getters and Setters
Index Signatures
Implementing an Interface
Static Class Members
Static Blocks
Inheritance
Abstract Classes
Abstract Properties
Abstract Methods
Generic Classes
Decorators
TypeScript Design Patterns
9. Control Flow Analysis
Narrowing
Widening
Type Guards
Truthiness Type Guards
Narrowing with Typeof
Handling null Values
Narrowing with Instanceof
Narrowing with the in Operator
Narrowing with Type Predicates
Discriminated Unions
Assertion Functions
Using as const
10. Manipulating Types
Generics
Generic Interfaces
Generic Types
Generic Functions
Conditional Types
Indexed Access Types
Mapped Types
Adding and Removing Property Modifiers
Remapping Property Keys
Template Literal Types
Capitalize
Uncapitalize
Uppercase
Utility Types
Awaited
ConstructorParameters
Exclude
Extract
InstanceType
NonNullable
Omit
OmitThisParameter
Partial
Parameters
Pick
Readonly
Record
Required
ReturnType
ThisParameterType
ThisType
11. TypeScript Modules
Modules in TypeScript.
Importing and exporting modules
Type-only imports and exports
Compiled modules
Module-related configuration options
Module
Module resolution
Base URL
Paths
Rootdirs
Type roots
Module suffixes
Resolve JSON module
Compiler directives
Reference path
Reference types
Reference lib
No default lib
AMD module
AMD dependency
Barrel files
Nested barrels
Augmenting modules
12. Creating Declaration Files
Creating declaration files
Declaring global libraries
Enhancing Intellisense with JSDoc
Declaring global functions and variables
Augmenting built-ins
Declaring modular libraries
Declaring default exports
Declaring classes
Declaring CommonJS modules
Declaring UMD modules
Publishing declarations
Publishing with the library
Publishing to Definitely Typed
Testing types
13. Building a Conference App with Angular and TypeScript
Getting started
Running build tasks
Unit tests
Linting
Serving the application
Creating the application shell
Creating a data model
Adding views
Home view
Adding routing
Building the add-conference view
Adding the conferences view
Changing the default locale
Adding a page not found component
Handling data
Unit testing
Continuing with the example application
Index.
Notes:
Description based on publisher supplied metadata and other sources.
Description based on print version record.
Includes bibliographical references and index.
Other Format:
Print version: Wellman, Dan Ultimate Typescript Handbook
ISBN:
93-88590-78-3
OCLC:
1391443475

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Library Catalog Using Articles+ Library Account