Skip to content
CodeMorph

Download CodeMorph (Beta)

Free to download. Sign in for CodeMorph AI, or bring your own API key.

Release notes only. Unsubscribe in one click.

Verify

Not just converted. Type-checked.

Most migration tools stop when the file parses. CodeMorph type-checks every file against your whole project after each batch. Failures go back into a repair loop, and a batch is only verified when there are zero type errors. Running your tests and build is coming soon.

Download CodeMorph (Beta)

Free to download. Sign in for CodeMorph AI, or bring your own API key.

Release notes only. Unsubscribe in one click.

How Verify works
Migration finished in the Migrate panel: 3 files migrated, Type check: no errors, the time and cost, a saved checkpoint, and buttons to open the migration report or commit the changes.

Definition

What “verified” means

A precise, checkable bar. No vibes, no confidence scores.

0

type errors

tsc --noEmit across the whole project, against your own tsconfig.json.

Coming soon

100%

of your tests pass

Your existing test command, run as your package.json defines it.

Coming soon

1

clean build

Your build script runs too, so what you ship is what was checked.

Today, Verify enforces the type-check. Running your tests and build is coming soon.

The loop

Convert, check, repair

Errors are information. CodeMorph uses them.

  1. 01

    Record a baseline

    tsc --checkJs
    Before anything changes, CodeMorph measures how many type errors your JavaScript already has. Progress is measured against reality.
  2. 02

    Convert the batch

    Each file is converted with its already-typed dependencies in context.
  3. 03

    Type-check

    tsc --noEmit
    The whole project is checked, not just the new files, so a change that breaks a dependent file is caught immediately.
  4. 04

    Repair

    bounded attempts
    Compiler errors go back to the model with the exact diagnostics attached. If a file still fails after a few attempts, it's flagged for your review instead of being forced through with any.
  5. 05

    Run your tests

    Coming soon
    Your test suite will run unchanged, so a batch that type-checks but breaks behavior is caught.
  6. 06

    Build

    Coming soon
    Your build script will run last, so the code you ship is the code that was checked.
CodeMorph output panel
[codemorph] baseline: tsc --checkJs · 1,879 errors in 38 files
[codemorph] batch 1/4 · lib/ utilities
[codemorph] lib/db.ts      · tsc 0 errors · 0 repairs
[codemorph] lib/logger.ts  · tsc 0 errors · 1 repair
[codemorph] lib/mailer.ts  · tsc 0 errors · 0 repairs
[codemorph] batch 1 · tsc --noEmit · 0 errors
[codemorph] batch 1 verified

Details

Built around your toolchain

Your tsconfig, respected

Verify uses your tsconfig.json and its strictness. Raise it whenever you're ready, and the whole project is held to that bar.

Tests and build, soon

Running your test and build scripts is coming soon. Until then, run them yourself after each batch.

No silent any

Repairs that would only pass by widening to any are flagged, so you can see every place the types gave up.

Runs locally

tsc runs on your machine, in your environment, against your real dependencies.

Available now

Typecheck

tsc --noEmit across the whole project, against your own tsconfig.json.

The typecheck runs the TypeScript compiler you already depend on, with your configuration, and reports the error count. Zero is the only passing result. It covers every file in the project, including JavaScript that hasn't been converted yet, because a change to a typed module can break the files that import it.

Why the whole project is checked
// lib/money.ts (just converted)
export function money(cents: number): string {
  return "$" + (cents / 100).toFixed(2);
}

// api/orders.js (still JavaScript, not in this batch)
const { money } = require("../lib/money");
money(order.total.toString());
//    ^ tsc --checkJs: Argument of type 'string' is not assignable
//      to parameter of type 'number'.

Checking only the converted file would have passed. Checking the project catches the caller that now passes the wrong type.

Coming soon

Test suite

Your test script, run as package.json defines it.

Coming soon

Types prove the code is consistent. They don't prove it's correct. A function annotated to return a string that really returns undefined on one path will type-check happily if every caller trusts the annotation. Your tests are the closest thing your project has to a specification, so they should decide whether behavior survived the migration.

Running the test script from your package.json is coming soon. Until then, Verify proves the types are consistent and nothing more, so run your own tests after each batch.

Coming soon

Build

Your build script, so what you ship is what was checked.

Coming soon

Bundlers and frameworks have their own rules on top of TypeScript: Next.js page conventions, Vite plugins, path aliases configured in the bundler rather than tsconfig. Running the build script is coming soon, to catch anything the typecheck misses before it reaches your CI or your users.

Results

Reading the Verify tab

You seeIt means
A spinner next to a stepThat step is running now.
A check and “0 errors”The typecheck passed across the whole project.
Migration verifiedThe typecheck is clean. The card shows your typed-file count and strictness, such as 38/38 files typed, strict mode.
A failed stepVerification stops there. Open the failing file to see the compiler's message.

Strictness

Choose your bar

Verify holds the project to whatever your tsconfig.json says. Raise it when you're ready.

Loose

strict off. Fastest path to every file being TypeScript, with types filled in where they're clear.

Incremental

Individual flags such as noImplicitAny or strictNullChecks, turned on one at a time.

Strict

strict: true. Every file is type-checked to the strictest standard.

Not sure where to start? Read Turning on strict mode without drowning in errors.

In the editor

Run it any time

One shortcut

Open the Verify tab in Morph or press Ctrl+Shift+V. Run & Verify type-checks the whole project, not just the changed files. When it's clean you'll see Migration verified, with your typed-file count. Running your tests and build is coming soon. See the Verify docs.
Does Verify run my tests?
Not yet. Running your test script is coming soon. Today Verify type-checks the whole project, which proves the types are consistent but not that behavior is unchanged, so run your own tests after each batch.
Which commands does it run?
tsc --noEmit for the typecheck, against your own tsconfig.json. Running the test and build scripts from your package.json is coming soon.
Is my code sent anywhere to be verified?
No. The typecheck runs on your machine. Code leaves it only when you convert a file: straight to your provider with your own key, or through our servers to Anthropic with CodeMorph AI, which we don't store.
Can I run Verify without migrating anything?
Yes. It's a quick health check for any project: it reports how many type errors the project has right now.
Does Verify need an API key?
No. Verification runs entirely on your machine with your own tools.
What about projects that use a bundler instead of tsc?
The typecheck uses tsc --noEmit, which only checks and doesn't emit files, so it works alongside Vite, Next.js, webpack and others.
How long does Verify take?
As long as your own typecheck takes. CodeMorph adds nothing on top.
What's the baseline for?
It records how many type errors your JavaScript had before the migration, so you can see real progress and confirm a batch never makes things worse.

Ship TypeScript you can type-check.

Download the beta, open a project and see your migration plan in under a minute.

Download CodeMorph (Beta)

Free to download. Sign in for CodeMorph AI, or bring your own API key.

Release notes only. Unsubscribe in one click.

Read the docs

Free plan, no card needed. Pro is $20 a month. Founding price $12 a month for the first 100.