A text adventure game on TypeScript's type system
1–10 of 33 posts
Re: A text adventure game on TypeScript's type system
#2How do you play the game?
Re: A text adventure game on TypeScript's type system
#3I never get tired of seeing fun little things like this. Is there a way to make VSCode not truncate the type info?
Re: A text adventure game on TypeScript's type system
#4How do you play the game?
git clone, make sure TypeScript is installed, and open src/index.ts
Would be nice if this was exported to some TypeScript playground environment.
Re: A text adventure game on TypeScript's type system
#5What a beautiful little treat. For everyone curious, it took me less than ten minutes to play through. Well done!
Re: A text adventure game on TypeScript's type system
#6Weirdly, a spider killing me isn't the worst thing I've seen written in Typescript.
Re: A text adventure game on TypeScript's type system
#7Re: A text adventure game on TypeScript's type system
#8What the fuck
Re: A text adventure game on TypeScript's type system
#9For those wanting a TS Playground link: https://tinyurl.com/mw6pbpht
Re: A text adventure game on TypeScript's type system
#10This is neat. Can someone explain why the generic types extending string need to default to any in all these cases, like:
`TDescription extends string = any` ?