Skip to content

Commit

Permalink
Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
leaf-bob-fornal committed Oct 3, 2024
1 parent 4c8c574 commit e70769e
Show file tree
Hide file tree
Showing 33 changed files with 64 additions and 6 deletions.
57 changes: 57 additions & 0 deletions Tooling/TypeScript/Deep-TypeScript-Tips-&-Tricks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Deep TypeScript Tips & Tricks

> Josh Goldberg
TypeScript has a powerful type system with all sorts of fancy features for representing wild and wacky JavaScript states. But the syntax to do so isn't always straightforward, and the error messages aren't always precise in telling you what's wrong. Let's dive into how many of TypeScript's more powerful features really work, what kinds of real-world problems they solve, and how to wrestle the type system into submission so you can write truly excellent TypeScript code.

## TypeScript Recap

### JavaScript

Is a programming language with syntax.

### TypeScript

Is a superset of JavaScript; adds syntax and provides a way to describe what a value is (or should be).

* Command Line
* Editor Tooling

## Editor Tooling

Right-Click:

* Goto Definition
* Find All References (reference tab)
* Peek > Peek References
* Rename Symbol (refactor window)

Highlights issues across files.

Versioning:

* Lower-right: Select Version (VS Code or Workspace Version)

## Linting

Type checked linting ...

0. Formatters
1. Linters (Traditional)
2. Type Checkers
3. Linters (Type Aware)

**Type Aware Linting**: Linting rules that can use TypeScript rules when Linting.

## TypeScript Configuration



## Union and Narrowing

## New TypeScript Stuff

## Generics

## Miscellaneous

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 7 additions & 6 deletions Front-End/TypeScript/README.md → Tooling/TypeScript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
## Developer Notes

* [Getting Started with TypeScript](Getting-Started/README.md)
* [Introducing TypeScript](Introducing/README.md)
* [Migrating from JavaScript to TypeScript](Migrating/README.md)
* [Practical Examples](Practical-Examples/README.md)
* [TypeScript](General/README.md)
* [Why Use TypeScript](Why-Use/README.md)
* [Getting Started with TypeScript](./Getting-Started/README.md)
* [Introducing TypeScript](./Introducing/README.md)
* [Migrating from JavaScript to TypeScript](./Migrating/README.md)
* [Practical Examples](./Practical-Examples/README.md)
* [TypeScript](./General/README.md)
* [Why Use TypeScript](./Why-Use/README.md)
* [Deep TypeScript Tips & Tricks](./Deep-TypeScript-Tips-&-Tricks/README.md/)

## Articles

Expand Down
File renamed without changes.

0 comments on commit e70769e

Please sign in to comment.