Skip to main content

7 docs tagged with "types"

View all tags

Advanced type operations

In this chapter, you learn about TypeScript's advanced type operation features. Combining them lets you write more type-safe and expressive code.

Special types

In this chapter, you learn about TypeScript's special types.

Type narrowing

In this chapter, you learn about "type narrowing," which is at the core of TypeScript's type system.

TypeScript-specific best practices

Best practices for using the TypeScript type system effectively. Explains avoiding any, choosing between unknown and never, generics, utility types, and narrowing with type guards, using Bad / Good comparisons.

Union types, literal types, and enums

In this chapter, you learn about union types that combine multiple types, literal types that allow only specific values, and enums that group related constants.