Designing type-safe sync/async mode support in TypeScript | Dark Hacker News