destack.sh
docstemplatesblog
Language
  1. Setup
  2. TypeScript
  3. Soundness
  4. Primitives
  5. Expressions
  6. Control Flow
  7. Decorators
  8. Static Ifs
  9. Type Aliases
  10. Objects
  11. Arrays
  12. Tuples
  13. Functions
  14. Captures
  15. Generators
  16. Async and Promise
  17. Classes
  18. Enums
  19. Unions
  20. Narrowing
  21. Interfaces
  22. Generics
  23. Type Operators
  24. TSX
  25. Modules
  26. Globals
  27. TypeScript++
  28. Runtime
  29. Standard Library
  30. Configuration
  31. Static Analysis
  32. Dynamic Analysis
  33. Deployment
menu
Language
  1. Setup
  2. TypeScript
  3. Soundness
  4. Primitives
  5. Expressions
  6. Control Flow
  7. Decorators
  8. Static Ifs
  9. Type Aliases
  10. Objects
  11. Arrays
  12. Tuples
  13. Functions
  14. Captures
  15. Generators
  16. Async and Promise
  17. Classes
  18. Enums
  19. Unions
  20. Narrowing
  21. Interfaces
  22. Generics
  23. Type Operators
  24. TSX
  25. Modules
  26. Globals
  27. TypeScript++
  28. Runtime
  29. Standard Library
  30. Configuration
  31. Static Analysis
  32. Dynamic Analysis
  33. Deployment
Docs/Language/TypeScript
49 tokens
mdtxt

Static Ifs

`@if` static gating

Static Ifs

  • @if(staticTerm) removes imports, declarations, members, statements, cases, arguments, fields, and similar contributions before checking and output
  • @if is resolved before inference
← DecoratorsType Aliases →
discordxgithub
2026.8.3alpha