Skip to content

caindra/intro_typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

📘 Learning TypeScript from Scratch 🚀

Welcome to my repository of TypeScript practices! Here, you'll find exercises and basic examples that cover essential TypeScript concepts and techniques. This repo is designed for anyone looking to learn and apply TypeScript practically. The exercises you'll find on the repository are from Fernando Herrera's course as part of the way to learn Angular. But first things first, let's start with TypeScript!

🧩 Contents

  1. Introduction to TypeScript: Basic setup and introduction to get started with TypeScript.
  2. Basic Types: Working with string, number, boolean, any, and type declarations in TypeScript.
  3. Objects, Arrays, and Interfaces: Defining complex structures and interfaces.
  4. Functions and Parameters: Declaring and using functions, passing arguments, and returning values.
  5. Array and Object Destructuring: Simplify data manipulation using destructuring.
  6. Imports and Exports: Structuring modules, imports, and exports.
  7. Classes and Constructors: Object-oriented programming with classes and constructors in TypeScript.
  8. Generic Types: Creating generic functions and classes for code reuse.
  9. Decorators: Using decorators to modify classes, properties, and methods.
  10. Optional Chaining: Safely handle optional properties to avoid runtime errors.

🚀 Getting Started

  1. Clone this repository:
    git clone https://github.com/yourusername/my-typescript-basics-repo.git
    
  2. Install necessary dependencies (if applicable):
    npm install
    
  3. Run examples with:
    tsc example-file.ts
    node example-file.js
    

Requirements

  • Node.js (recommended version: 14+)
  • TypeScript (install globally with npm install -g typescript)

Contributions

All contributions are welcome! If you find any issues or have ideas for improvement, feel free to open an issue or submit a pull request.

👩‍💻 Let’s keep leveling up our programming skills together! The TypeScript journey begins now! 🌟

  • This project was created using Vite

Create a project using Vite

  1. Create the project:
    npm create vite
    -- write your project\'s name, now choose a framework, which in my case was 'Vanilla', and a variant, whichc for me was 'TypeScript'
    
  2. Access to the project directory on your terminal and install all needed packages:
    cd <your-projects-name>
    npm install
    
  3. Run npm on dev:
    npm run dev 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published