Gist d41b2d287647d1e9686cd28b744df4fb
✓ Published0🌍 Public
TTipTopCoder
Last edited Jan 14, 2020
Created on Jan 14, 2020
This example shows a TypeScript class that defines a user entity with a computed full name property. It demonstrates how the `formatName` helper function is imported and used to combine first and last names into a single formatted string. The `User` class exposes a getter that calls `formatName` with the hardcoded values "John" and "Doe". The code relies on TypeScript's class syntax and module import system, specifically the `~/utils/helpers/format-name` path alias to access the utility function.
AI-generated description