Extract parameter types from string literal types with TypeScript | Dark Hacker News