/the-hell-is-ts

X—amples and x—ercises for the three—part program "The Hell Is Typescript".

Primary LanguageTypeScript

The Hell Is TypeScript

by Vic Sidious

This repository contains x—amples and x—ercises for the three—part program "The Hell Is Typescript".

Setup

Install dependencies

npm i

Running a .ts file

npm run ts <file>

Files

src/index.ts

Examples and explorations of TypeScript basics.

module.ts

Example demonstrating imports and module declarations.

skullVertexShader.glsl {🛑 Do not modify}

Utility file to help demonstrate module declarations, importing non TS modules.

map-solution.ts {🛑 Do not modify}

Solution to the empty map function under Generics in src.index.ts.

src/pizza-planet.ts

Exercises simulating simple, real—world use cases of TypeScript.

src/pizza-planet-db.ts {🛑 Do not modify}

JSON file simulating database data.

src/pizza-planet-solution.ts {🛑 Do not modify}

For reference when severely lost.

Resources

TypeScript Basics

TypeScript Deep Dive

TypeScript Exercises

Low—maintenance Types

TypeFest

Object-Oriented vs Functional Typescript

Functional Programming in TypeScript

Final and Frozen Class Decorators

Get Started With Typescript Decorators

Enums vs Union Types

TS Config Options in Plain English

Type Systems: Structural vs. Nominal typing explained

Build a simple object validation utility with TypeScript

Typescript Runtime Validation With io-ts