Ledgerline

Ledgerline migrated 2,000 files to TypeScript in a week

2,140

files migrated

6 days

instead of the planned two quarters

Industry

Fintech

Team

35 engineers

The challenge

Ledgerline’s web app was 2,140 JavaScript files. The team wanted TypeScript for years, but every plan estimated two quarters of work with the whole frontend team stopped.

The approach

  1. Kestrel mapped the dependency graph and split the work into 40 tasks, leaf files first.

  2. Each task ran overnight as a background agent.

  3. Every pull request had to pass type checks and the full test suite before a human saw it.

  4. Two engineers reviewed plans each morning and merged.

// Before: utils/money.js
export function format(amount, currency) { ... }

// After: utils/money.ts
export function format(amount: number, currency: CurrencyCode): string { ... }
// Before: utils/money.js
export function format(amount, currency) { ... }

// After: utils/money.ts
export function format(amount: number, currency: CurrencyCode): string { ... }
// Before: utils/money.js
export function format(amount, currency) { ... }

// After: utils/money.ts
export function format(amount: number, currency: CurrencyCode): string { ... }
Abstract gradient illustration

The results

Measure

Planned

Actual

Time to migrate

2 quarters

6 days

Engineers involved

9

2 reviewers

Bugs found after release

Unknown

3, all minor

We planned two quarters for the TypeScript migration. It took six days, and the diff was cleaner than ours would have been.

Kenji Watanabe

Head of Platform

Create a free website with Framer, the website builder loved by startups, designers and agencies.