Skip to content

πŸ“šπŸ§±πŸš€ Fundamentals of TypeScript provided with examples to give you a solid foundation.

Notifications You must be signed in to change notification settings

joehunterdev/typescript-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TypeScript Course

Learn the fundamentals of TypeScript, including its syntax, features, and how to leverage its benefits in your JavaScript projects. Whether you are a beginner or an experienced JavaScript developer, this course will provide you with a solid foundation in TypeScript. πŸš€

Fundamentals

The TypeScript Handbook is a comprehensive guide that covers various aspects of TypeScript. It is a great resource for your daily TypeScript work. The handbook covers the following topics:

The Basics πŸ“š

Everyday Types 🌈

Narrowing 🎯

More on Functions πŸ”„

Object Types 🧱

  • noImplicitAny: Disable implicit variable type assignment with any = unknown. TypeScript will never infer types of arrays. any is mostly used with strings.
  • enums: Enums can be defined with string or number values. Enums default to 0.
  • definitely typed: Refers to a project that involves a central repository of definitions for npm packages which do not have types, specified in tsconfig.json.
  • overriding: When a class extends another class and replaces the members of its parent, it is called overriding.
  • implicit: firstName = "John";
  • explicit: firstName: string = "John";
  • disabled type checking: let myVar: any;
  • unknown: let myVar: unknown;
  • no array changes: const names: readonly string[] = ["Dylan"];
  • loosely typed: Refers to vanilla JavaScript.
  • tuple: let ourTuple: [number, boolean, string]; - an array of mixed types.

Type Manipulation πŸ”§

Creating Types from Types 🧩

Generics πŸ“¦

Keyof Type Operator πŸ”‘

Typeof Type Operator πŸ“

Indexed Access Types 🎯

Conditional Types ❓

Mapped Types πŸ—ΊοΈ

Template Literal Types ✨

Classes 🏫

Modules πŸ“¦

Reference

The reference section provides deep dive materials and reference guides for TypeScript:

Utility Types πŸ› οΈ

Cheat Sheets πŸ“„

Decorators 🎨

Declaration Merging πŸ”„

Enums 🌐

Iterators and Generators πŸ”„

JSX 🌐

Mixins 🧁

Namespaces 🌐

Symbols πŸ”

Triple-Slash Directives 🌐

Type Compatibility πŸ”„

Type Inference πŸ”„

Variable Declaration πŸ”„

Modules Reference πŸ“¦

Tutorials

Learn how to use TypeScript in various environments and frameworks:

DOM Manipulation with TypeScript 🌐

Migrating from JavaScript to TypeScript πŸ”„

Using Babel with TypeScript 🌐

Declaration Files

Declaration files are important for describing existing JavaScript libraries and frameworks. Learn how to write declaration files and contribute to DefinitelyTyped:

Introduction to Declaration Files πŸ“„

Declaration Reference πŸ“„

Library Structures πŸ“š

Templates for .d.ts Files πŸ“„

Module Declarations πŸ“¦

Plugin Declarations πŸ“¦

Class Declarations 🏫

Function Declarations πŸ”„

Global Declarations 🌐

Modifying Existing Modules πŸ“¦

Do's and Don'ts ❌

Publishing Declaration Files πŸ“„

Consuming Declaration Files πŸ“„

JavaScript

Discover how to leverage TypeScript-powered JavaScript tooling:

JavaScript Projects Utilizing TypeScript 🌐

Type Checking JavaScript Files πŸ”„

Creating .d.ts Files from .js Files πŸ“„

Project Configuration πŸ“¦

Compiler Configuration

Learn about the tsconfig.json file and how to configure the TypeScript compiler:

What is a tsconfig.json ❓

Compiler Options in MSBuild πŸ› οΈ

TSConfig Reference πŸ“„

tsc CLI Options βš™οΈ

Project References πŸ“¦

Integrating with Build Tools πŸ› οΈ

Configuring Watch ⏱️

Nightly Builds πŸŒ™

Cheat Sheets

Downloadable syntax reference pages for different parts of everyday TypeScript code:

Control Flow Analysis πŸ”„

Classes 🏫

Interfaces 🧩

Types πŸ“¦

For more detailed information, you can download PDFs and PNGs of the cheat sheets.

We hope you find this documentation helpful in your TypeScript journey. Happy coding! πŸ˜„

About

πŸ“šπŸ§±πŸš€ Fundamentals of TypeScript provided with examples to give you a solid foundation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published