TypeScript

tags:: Programming

Features

String Template Literal Types

endpoint: `http://api.app.com/user/${number}`

Function Overloads

Conditional Types

type Return<T> =
  T extends "a" ? A :
  T extends "b" ? B : 
  never;