https://github.com/primaryobjects/typescript-employee
TypeScript example for implementing an object-oriented employee class.
https://github.com/primaryobjects/typescript-employee
abstract design-patterns interface javascript object-oriented-programming typescript vscode
Last synced: about 1 month ago
JSON representation
TypeScript example for implementing an object-oriented employee class.
- Host: GitHub
- URL: https://github.com/primaryobjects/typescript-employee
- Owner: primaryobjects
- Created: 2021-04-30T02:15:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T12:25:03.000Z (about 5 years ago)
- Last Synced: 2025-02-09T17:42:12.982Z (over 1 year ago)
- Topics: abstract, design-patterns, interface, javascript, object-oriented-programming, typescript, vscode
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
typescript-employee
===================
A quick example of creating a TypeScript application!
## About
This example uses TypeScript to create a simple Employee set of classes, including an interface, abstract base class, static utility method, and an array of interfaces (using the Strategy Design Pattern).
## Quick Start
```bash
npm install
npm start
```
## Layout
```
src/
abstract/BaseEmployee.ts
concrete/Academic.ts
concrete/Employee.ts
enum/DepartmentType.ts
interface/IEmployee.ts
utility/IdGenerator.ts
app.ts
```
## Output
```text
Sally Doe (1) - HR, Active
Jane Doe (2) - Data, Terminated
Foster Brown (3) - Data, Physics
```