destack.sh
docstemplatesblog
Language
  1. Setup
  2. TypeScript
  3. TypeScript++
  4. Structs
  5. Layout
  6. Slices and Fixed Arrays
  7. Newtypes
  8. Nominal Interfaces
  9. Associated Types and Constants
  10. Extensions
  11. Operator Overloading
  12. Patterns and Match
  13. Results and Try
  14. Ownership
  15. Mutability
  16. Borrowing
  17. Pointers
  18. Unsafe
  19. Lifetimes and Regions
  20. Drop
  21. Runtime
  22. Standard Library
  23. Configuration
  24. Static Analysis
  25. Dynamic Analysis
  26. Deployment
menu
Language
  1. Setup
  2. TypeScript
  3. TypeScript++
  4. Structs
  5. Layout
  6. Slices and Fixed Arrays
  7. Newtypes
  8. Nominal Interfaces
  9. Associated Types and Constants
  10. Extensions
  11. Operator Overloading
  12. Patterns and Match
  13. Results and Try
  14. Ownership
  15. Mutability
  16. Borrowing
  17. Pointers
  18. Unsafe
  19. Lifetimes and Regions
  20. Drop
  21. Runtime
  22. Standard Library
  23. Configuration
  24. Static Analysis
  25. Dynamic Analysis
  26. Deployment
Docs/Language/TypeScript++
26 tokens
mdtxt

Nominal Interfaces

Nominal interfaces (traits).

Nominal Interfaces

  • nominal interfaces (traits)
1newtype interface Add<T> {2    add(a: T, b: T): T;3}
← NewtypesAssociated Types and Constants →
discordxgithub
2026.8.3alpha