A text adventure game on TypeScript's type system
11–20 of 33 posts
Re: A text adventure game on TypeScript's type system
#12Earlier quoted context omitted.
git clone, make sure TypeScript is installed, and open src/index.ts Would be nice if this was exported to some TypeScript playground environment.
Easiest is to just press `.` on the GitHub repo to open the GH dev environment
Re: A text adventure game on TypeScript's type system
#13For those wanting a TS Playground link: https://tinyurl.com/mw6pbpht
Re: A text adventure game on TypeScript's type system
#14I 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
#15I never get tired of seeing fun little things like this. Is there a way to make VSCode not truncate the type info?
[1]https://www.typescriptlang.org/tsconfig#noErrorTruncation
Re: A text adventure game on TypeScript's type system
#16Weirdly, 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
#17This 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` ?
Re: A text adventure game on TypeScript's type system
#18Re: A text adventure game on TypeScript's type system
#19I never get tired of seeing fun little things like this. Is there a way to make VSCode not truncate the type info?
`noErrorTruncation: true` in a tsconfig.[1] It also affects hover and quickinfo truncation. Technically it will still truncate, just at a way higher limit, like a million characters. [1] https://www.typescriptlang.org/tsconfig#noErrorTruncation
https://stackoverflow.com/questions/62508909/vs-code-how-to-...
Re: A text adventure game on TypeScript's type system
#20Earlier quoted context omitted.
git clone, make sure TypeScript is installed, and open src/index.ts Would be nice if this was exported to some TypeScript playground environment.
Easiest is to just press `.` on the GitHub repo to open the GH dev environment