Get the latest tech news

Playing Sudoku in TypeScript while the type checker highlights mistakes


Playing Sudoku in TypeScript while the type checker highlights mistakes. - gruhn/typescript-sudoku

The goal is that we can play Sudoku in TypeScript while the type checker complains about mistakes. So you always get a type error no matter what you write on the right-hand side of const value: never = ? Even then, error messages are not very friendly and, depending on the TypeScript version, it can take multiple seconds to type check the code.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of TypeScript

TypeScript

Photo of mistakes

mistakes

Photo of type checker

type checker

Related news:

News photo

Show HN: Srcbook – A TypeScript notebook for rapid prototyping

News photo

Helldivers 2 devs “own” mistakes of latest update and hand out a bullet-pointed emergency roadmap to fix things

News photo

An approach to optimizing TypeScript type checking performance