How cyberspacedk/typescript-book works
This repository is a TypeScript learning resource: its README organizes lessons from JavaScript foundations and modern syntax through TypeScript projects, types, errors, tips, and compiler internals. The principal workflow is a learner consulting a topic and its runnable or illustrative code example. The tree contains examples rather than a runtime application, so there is no application data pipeline. The README establishes the learning topics; sampled examples show their implementation, but do not establish links between separate examples.
Main entry points: closure.ts Closures · asyncAwaitES6.ts Async await · class.ts Classes · iterators.ts Iterators
Components 19
JavaScript foundations
- Closures
code/javascript/closure.ts
Language features
- Async await
code/async-await/es6/asyncAwaitES6.ts - Classes
code/es6/classes/class.ts - Iterators
code/es6/iterators.ts - ES features
code/es6
TypeScript concepts
- Dynamic import
code/dynamic-import-expressions/dynamicImportExpression.ts - Declaration spaces
code/declarationspaces/declarationspace.ts - Type inference
code/types/type-inference.ts - Interfaces
code/types/interfaces.ts - Generics
code/types/generics.ts - Type guards
code/types/typeGuard.ts - Freshness
code/types/freshness/freshness.ts - Type system examples
code/types - Type errors
code/errors/interpreting-errors.ts - TypeScript tips
code/tips
Compiler examples
- Scanner demos
code/compiler/scanner/runScanner.ts - Scanner positions
code/compiler/scanner/runScannerWithPositions.ts - Parser demo
code/compiler/parser/runParser.ts
Other components
- Learner
Connections 18
- Learner → Closures: studies
- Learner → Async await: studies
- Learner → Classes: studies
- Learner → Iterators: studies
- Learner → ES features: studies
- Learner → Dynamic import: studies
- Learner → Declaration spaces: studies
- Learner → Type inference: studies
- Learner → Interfaces: studies
- Learner → Generics: studies
- Learner → Type guards: studies
- Learner → Freshness: studies
- Learner → Type system examples: studies
- Learner → Type errors: studies
- Learner → TypeScript tips: studies
- Learner → Scanner demos: studies
- Learner → Scanner positions: studies
- Learner → Parser demo: studies