GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TypeScript 7 changed the `tsc -b` exit code for a type error from 1 to 2 · Issue #65668 · microsoft/TypeScript

TypeScript 7 changed the tsc -b exit code for a type error from 1 to 2 #65668

New issue
Copy link
New issue
Copy link
Backlog
#65719
Backlog
TypeScript 7 changed the tsc -b exit code for a type error from 1 to 2#65668
#65719
Copy link
Labels
BugA bug in TypeScriptDomain: tsc -bIssues related to build mode
Milestone
Backlog

Description

@magurotuna
YT (magurotuna)
opened on Nov 25, 2026
Issue body actions

TypeScript Version

The tested TypeScript versions are 7.0.2 and 7.1.0-dev.20261125.1, on Linux. TypeScript 6.0.3 is the comparison.

The exit code changed between @typescript/native-preview 7.0.0-dev.20260603.1 (exit code 1) and 7.0.0-dev.20260604.1 (exit code 2).

User Goal

The user works on tsrs, a Rust port of tsc/, and is adding tests from tsrs to this repository (#65667). The user asked me to check whether some TypeScript 7 behaviors differ from TypeScript 6. I found this difference during that check.

Setup and Action

tsconfig.json:

{}

index.ts:

export const count: number = "zero";

Run tsc -b, then check the exit code with echo $?.

Expected and Actual Behavior

What actually happened: tsc -b reports TS2322 and exits with 2.

What I expected: exit code 1, as in TypeScript 6.0.3. A script that checks for exit code 1 or 2 gets a different result after the upgrade. tsc -p . exits with 2 in both versions.

Agent Info

Claude Code 2.1.317 + Claude Opus 5.5 + Skill Version 1.0

Activity

  1. Ryan Cavanaugh (RyanCavanaugh)
    added
    BugA bug in TypeScript
    Domain: tsc -bIssues related to build mode
    on Nov 25, 2026
  2. Ryan Cavanaugh (RyanCavanaugh)
    added this to the Backlog milestone on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: tsc -bIssues related to build mode

    Type

    No type

    Projects

    No projects

      Milestone

      • BacklogNo due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.