News for hackers. Stuff that matters.
Re:TScert: A Sound Core for TypeScript by SSchick on Thursday November 05, 2026 @11:06AM (#50380870)
I'd like examples/cases this catches that aren't handled by the existing compiler.
Re:TScert: A Sound Core for TypeScript by lupodevelop on Thursday November 05, 2026 @11:22AM (#50381052)
Looking at the README, it seems to have one. With strict on and noUncheckedIndexedAccess off, tsc is fine with this:

  export function stale(xs: string[]): string {
    const n = xs.length;
    xs.pop();
    return xs[n - 1];
  }
You get undefined at runtime even though the signature says string. TScert won't take it unless you admit it in the return type, with string | undefined.
Re:TScert: A Sound Core for TypeScript by bazoom42 on Thursday November 05, 2026 @12:21PM (#50381726)
But why not just enable noUncheckedIndexedAccess?