Skip to content

tsgo-strictStrict TypeScript, one file at a time.

A fast, Rust-powered strict-only type checker built on Microsoft's tsgo — so you can adopt `strict: true` incrementally, without drowning the build.

tsgo-strict
~7.7×
faster full-project runs vs typescript-strict-plugin + tsc
<1 ms
tsconfig parsing (vs ~100 ms from Node startup)
strict
flipped on only where you want — same override as the original plugin
6
prebuilt native targets, one npm install

Install

bash
npm install --save-dev @coralogix/tsgo-strict typescript@^7
# or
pnpm add -D @coralogix/tsgo-strict typescript@^7

Requires a native TypeScript compilerTypeScript 7+, or @typescript/native-preview if your app isn't on v7 yet (install that instead and tsgo-strict uses it without touching your app's typescript).

Quickstart

Add a plugin block to your tsconfig.json:

jsonc
{
  "compilerOptions": {
    "plugins": [
      {
        "name": "typescript-strict-plugin",
        "paths": ["./src/strict", "./src/shared"],
        "excludePattern": ["**/*.test.ts"]
      }
    ]
  }
}

Then run the checker:

bash
npx tsgo-strict

Files under paths are checked under strict mode. Everything else stays on your normal tsconfig — and its diagnostics are filtered out of the output. Drop a // @ts-strict or // @ts-strict-ignore at the top of any file to override the config for that single file.

Ready to go deeper? Head to Getting Started for a full walkthrough, or How it works to see the pipeline.

Released under the Apache License 2.0.