Skip to main content

Computed Types

  • Chapter
  • First Online:
Modern TypeScript
  • 335 Accesses

Abstract

Now that we have a deeper appreciation of the fundamentals of TypeScript and how it works with the dynamic structurally typed language of JavaScript, we are ready for the real fun to start! In this chapter, we will explore a powerful feature of dynamic structural typing that is supported by TypeScript, called computed types. These advanced types take advantage of the runtime-typed approach of ECMAScript and JavaScript, making TypeScript's types even more dynamic and flexible than most statically typed languages, and are one of the paradigm’s most powerful features.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Beattie-Hood, B. (2023). Computed Types. In: Modern TypeScript . Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-9723-0_5

Download citation

Publish with us

Policies and ethics