TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A text adventure game on TypeScript's type system

293 点作者 cacozen超过 2 年前

11 条评论

bilalq超过 2 年前
I never get tired of seeing fun little things like this. Is there a way to make VSCode not truncate the type info?
评论 #32932362 未加载
评论 #32932119 未加载
JohnDotAwesome超过 2 年前
For those wanting a TS Playground link: <a href="https:&#x2F;&#x2F;tinyurl.com&#x2F;mw6pbpht" rel="nofollow">https:&#x2F;&#x2F;tinyurl.com&#x2F;mw6pbpht</a>
评论 #32936337 未加载
评论 #32932054 未加载
foota超过 2 年前
What the fuck
评论 #32936960 未加载
评论 #32936908 未加载
评论 #32935581 未加载
cercatrova超过 2 年前
Related, discussed previously, Type-Level TypeScript: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32913125" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32913125</a>
durnygbur超过 2 年前
So which one should now one study - TypeScript type system, RxJS operators, or the next generation of vomit produced by the Angular team? Together they compose extremely unfunny clusterfuck. For now my CVs all fall into a black hole, you better not fall off the employment train.
koshergweilo超过 2 年前
An interesting tidbit that I found in the source code is that it only accepts integers from 1 to 20. Perfectly sufficient for its use case, although not quite extendable as I would hope
noduerme超过 2 年前
This is neat. Can someone explain why the generic types extending string need to default to <i>any</i> in all these cases, like: `TDescription extends string = any` ?
评论 #32932610 未加载
dschuessler超过 2 年前
What a beautiful little treat. For everyone curious, it took me less than ten minutes to play through. Well done!
wildgeodude超过 2 年前
This is really neat, thanks!
have_faith超过 2 年前
How do you play the game?
评论 #32931101 未加载
notjustanymike超过 2 年前
Weirdly, a spider killing me isn&#x27;t the worst thing I&#x27;ve seen written in Typescript.
评论 #32932551 未加载