Job

Convert one JavaScript module to TypeScript with strict checks on that folder only

Convert one named folder of a JavaScript codebase to TypeScript under strict checking, with the rest of the code untouched, the tests passing and the type check running in CI.

What you get

  • The converted folder and configuration as a pull request
  • A report of the remaining escape hatches: each any or error-suppression comment, with the reason
  • The CI change that runs the type check, and a note on how to extend the strict area to the next folder
Price
From $775Final price agreed before we start
You pay
After the agreed checks pass and you sign off.
Term
One job
How soon
We set up the day after you ask and start work within three days.

No passwords, keys, card details or admin invites needed to start.

Price and terms in full

From $775 Final price agreed before we start

From $775 for one folder within those limits. We read the folder and its boundary before a final fixed quote. A tangled boundary, missing tests or a folder much larger than the limit lead to a separate decision or a stop.

You pay
After the agreed checks pass and you sign off. No advance payment.
Includes
One folder of up to 30 files and about 4,000 lines converted to TypeScript; Strict checking for that folder only, with typed exports and boundaries; A type-check step in CI and a report of remaining escape hatches
Term
One job
Technology
TypeScript, JavaScript, npm
Delivery
Start window and delivery date agreed in writing after eligibility and access checks.

Nothing is charged or booked when you send your details. The written quote confirms the total price and any tax before you accept.

What usually happened

You might be seeing

  • The same kind of bug, such as a missing property or a wrong argument type, keeps returning in one area
  • Nobody is sure which fields a core object has without reading the code that builds it
  • A previous attempt to add TypeScript to the whole project stalled on thousands of errors

Who it’s for: A founder or engineering lead who wants TypeScript's checks on the part of the code that causes the most bugs, without stopping feature work for a whole-codebase conversion.

The result: One named folder is TypeScript. It passes the compiler with strict checking enabled for that folder, its public exports carry real types rather than any, the boundaries with the rest of the code are typed, a type-check step runs in CI, and the existing tests pass unchanged. Code outside the folder behaves as before.

When it starts, and why it happens

Usually starts when: A bug traced to a wrong argument or a missing field in one area keeps recurring, a new hire asks for types on the core module, or an earlier all-at-once conversion stalled.

Converting a whole JavaScript codebase at once produces thousands of errors and stalls. TypeScript can be adopted folder by folder, because it can include JavaScript files alongside TypeScript and can check JavaScript files on request, but a half-done conversion is easy to get wrong: files renamed with the strict flags off, types added as any that check nothing, comments that silence errors, or a build that cannot read the new files. The folder is then called converted without being safer.

What you get

Included

  • One named folder of up to 30 source files and about 4,000 lines of JavaScript, plus its test files
  • A TypeScript configuration that lets JavaScript and TypeScript files coexist, and a stricter configuration that applies the strict family of checks to the converted folder only
Show 3 more
  • Renaming files one at a time and fixing each error with a real type, using type declarations for dependencies that have them
  • Types for the folder's public exports and for the data shapes that cross its boundary, such as function inputs and API responses
  • The minimum build support so the project's existing build tool can read the converted files, and a type-check command added to CI

Not included

  • Converting the rest of the codebase, or turning on strict checking project-wide
  • Refactoring or changing what the code does
  • Runtime validation of external data, which types do not provide
  • Changing the bundler, the test runner or the framework
Show 1 more
  • Writing type declarations for a dependency that has none, beyond what is needed at the folder's boundary

How we know it’s done

Agreed with you before work starts. Each check produces evidence you keep.

One module to TypeScript: 4 checks and the evidence you keep4 checks, each with the evidence you keep: 1 Type-check finishes with no errors, emits no files (evidence: Command output, strict settings configuration); 2 No exported function, class or value typed any (evidence: Zero exported any, escape-hatch report); 3 Existing tests pass unchanged before and after (evidence: Test and build output, baseline, final); 4 CI fails when a type error is introduced (evidence: CI run passes; broken branch fails). When all pass: sign-off (Review pull request, report, CI evidence, then merge). When a check fails: Checks do not pass: you do not pay.What we checkEvidence you keep1 Type-check finishes with no errors, emits nofilesCommand output, strict settings configuration2 No exported function, class or value typed anyZero exported any, escape-hatch report3 Existing tests pass unchanged before and afterTest and build output, baseline, final4 CI fails when a type error is introducedCI run passes; broken branch failsAll pass: sign-offReview pull request, report, CI evidence, then mergeA check failsChecks do not pass: you do not payYou decide here One module to TypeScript: 4 checks and the evidence you keep4 checks, each with the evidence you keep: 1 Type-check finishes with no errors, emits no files (evidence: Command output, strict settings configuration); 2 No exported function, class or value typed any (evidence: Zero exported any, escape-hatch report); 3 Existing tests pass unchanged before and after (evidence: Test and build output, baseline, final); 4 CI fails when a type error is introduced (evidence: CI run passes; broken branch fails). When all pass: sign-off (Review pull request, report, CI evidence, then merge). When a check fails: Checks do not pass: you do not pay.1 Type-check finishes with no errors,emits no filesEvidence: Command output, strict settingsconfiguration2 No exported function, class or valuetyped anyEvidence: Zero exported any, escape-hatchreport3 Existing tests pass unchangedbefore and afterEvidence: Test and build output, baseline,final4 CI fails when a type error isintroducedEvidence: CI run passes; broken branch failsAll pass: sign-offReview pull request,report, CI evidence,then mergeA check failsChecks do not pass:you do not payYou decide here
The checks we run, the evidence you keep for each, and what happens next. Drawn from the checks on this page.
The 4 checks in full, with the evidence you keep
  1. The type-check command, run with strict checking for the converted folder, finishes with no errors and emits no files

    Evidence: The command output and the configuration that applies the strict settings to the folder

    npx tsc --noEmit -p tsconfig.strict.json
  2. No exported function, class or value of the converted folder has any as its type, and every suppression comment or any inside the folder is listed in the report with a reason

    Evidence: A search result showing zero exported any, and the escape-hatch report

  3. The existing tests pass unchanged before and after the conversion, and the project's build finishes with the converted files included

    Evidence: Test and build output for the baseline and the final state

  4. The CI pipeline runs the type-check command and fails when a type error is introduced in the converted folder

    Evidence: A CI run that passes on the change, and a run on a deliberately broken branch that fails, linked in the handover

Sign-off. You review the pull request, the escape-hatch report and the CI evidence, then merge and deploy under your own gates. Types describe the code's expectations; they do not validate data arriving at runtime.

If it fails. If the agreed checks do not pass, you do not pay and you keep our configuration and findings.

How we deliver

We arrange the work and independent review, then show you the result against the agreed checks. You keep authority over your systems.

One module to TypeScript: how it is delivered, step by stepSteps in order: 1 Agree the folder (definition of done, strictness settings, record baseline); 2 Add TypeScript configuration (stricter one for the folder, without emitting files); 3 Rename the files (fix each error with a type); 4 Add build support (minimum, existing build tool reads files, re-run tests); 5 Add type-check step (to CI; record every remaining any or suppression); 6 Independent review (types, escape-hatch report, then hand over pull request); 7 sign-off (Review pull request, report, CI evidence, then merge). You decide at step 1 and the sign-off. We stop and tell you if any of the 4 conditions listed on this page applies.1 Agree the folderdefinition of done,strictness settings,record baseline2 Add TypeScriptconfigurationstricter one for thefolder, without emittingfiles3 Rename the filesfix each error with atype4 Add build supportminimum, existing buildtool reads files, re-runtests5 Add type-checkstepto CI; record everyremaining any orsuppression6 Independentreviewtypes, escape-hatchreport, then hand overpull request7 Sign-offReview pull request,report, CI evidence,then mergeWe stop and tell you ifany of the 4 conditions listed on this page appliesYou decide here One module to TypeScript: how it is delivered, step by stepSteps in order: 1 Agree the folder (definition of done, strictness settings, record baseline); 2 Add TypeScript configuration (stricter one for the folder, without emitting files); 3 Rename the files (fix each error with a type); 4 Add build support (minimum, existing build tool reads files, re-run tests); 5 Add type-check step (to CI; record every remaining any or suppression); 6 Independent review (types, escape-hatch report, then hand over pull request); 7 sign-off (Review pull request, report, CI evidence, then merge). You decide at step 1 and the sign-off. We stop and tell you if any of the 4 conditions listed on this page applies.1 Agree the folderdefinition of done, strictness settings, recordbaseline2 Add TypeScript configurationstricter one for the folder, without emittingfiles3 Rename the filesfix each error with a type4 Add build supportminimum, existing build tool reads files,re-run tests5 Add type-check stepto CI; record every remaining any orsuppression6 Independent reviewtypes, escape-hatch report, then hand overpull request7 Sign-offReview pull request, report, CI evidence, thenmergeWe stop and tell you ifany of the 4 conditions listed on this pageappliesYou decide here
How we deliver it, in order. A box with a coloured border is where you decide. Drawn from the delivery steps on this page.
The 6 delivery steps in full
  • Agree the folder, the definition of done and the strictness settings, then run the tests and the build on a copy and record the baseline
  • Add a TypeScript configuration that lets JavaScript and TypeScript coexist and a stricter one for the folder, with the type check running without emitting files
  • Rename the folder's files one at a time, give each export and boundary a real type and fix each error with a type rather than a suppression
  • Add the minimum build support so the existing build tool reads the files, then re-run the tests and the build
  • Add the type-check step to CI and record every remaining any or suppression comment with its reason
  • Independent review of the types and the escape-hatch report, then hand over the pull request with the evidence and the steps to revert it

This is a one-off job, not emergency cover or a subscription. We confirm eligibility, the total price, a start window and a delivery date before you accept. Work starts only after agreed inputs, secure access, any licences and necessary permissions are in place. Hosting, platform and supplier charges are excluded unless the written quote includes them. No charge or booking is created by sending a message.

When it fits, and when we stop

It fits when

  • The folder is JavaScript, with ES modules or CommonJS, and has up to 30 files and about 4,000 lines
  • There are tests that exercise the folder's behaviour, or you accept a written list of checks instead
Show 2 more
  • The project has a build or run step that can be extended to read TypeScript, or the files run through a bundler
  • A person on your side can review the pull request and decide each recorded escape hatch

We stop and tell you if

  • The folder depends on code outside it in so many circular ways that it cannot be typed without refactoring
  • The code relies on dynamic behaviour, such as properties added in many places at runtime, that cannot be typed without changing it
Show 2 more
  • The project cannot run its tests on a copy
  • The folder is larger than the agreed limit and the owner does not accept a split

Check whether this job fits

Five short questions. Your answers stay on this page unless you choose to email them.

Answer 5 questions to see if it fits
How big is the folder you want converted?
Are there tests that cover that folder?
How does the project build or run its JavaScript?
Does the folder have a clear public interface?

A set of functions or classes that the rest of the code imports, rather than other code reaching into its internals.

Who will review the types?

Answer the questions to see whether this job fits.

Nothing is sent anywhere until you choose to email us.

Ask about this job

Checks you can run yourself
  1. Count files and lines in the folder

    Run this in a copy of the project folder, replacing the folder name, and send the two numbers.

    find src/FOLDER -name "*.js" | wc -l; find src/FOLDER -name "*.js" -exec cat {} + | wc -l

    Look for: The number of files and the number of lines. The fixed scope covers up to 30 files and about 4,000 lines.

  2. See whether TypeScript is already installed

    Run this in a copy of the project folder.

    grep -E "\"typescript\"" package.json

    Look for: A line with a version number, or nothing. Send what you see.

What could go wrong

The change is a pull request your team merges, so it can be reverted like any other. Files are renamed in separate commits so one can be undone without the rest.

3 risks, and how we handle each

Scroll the table sideways to read it all.

RiskHow we handle it
Types are written to make errors disappear rather than to describe the dataThe approval check counts any in exported signatures and every suppression comment, and the reviewer reads each against the code that uses it.
The conversion changes runtime behaviourThe existing tests run unchanged before and after, and the change is limited to renames, types and build support.
A type is correct today but wrong for data the code receives from outsideThe report states which types describe external data and says that types are not checked at runtime.

A second reviewer reads every exported type against how the rest of the code uses it, checks that suppressions and any are each justified in the report, and re-runs the type check from the handover notes alone.

Need to keep it working?

A full-time AI agent can look after this kind of work, or tell us what you want looked after when you ask.

What ongoing work would cover, and what it does not

Discuss a follow-on to convert the next folder, or a monthly service that keeps dependencies on supported versions.

Ongoing work is separately scoped and quoted: no monitoring, response-time guarantee or automatic subscription is included in this job.

What you can check

Other ways to get this done
  • TypeScript can check JavaScript files in place: a comment at the top of a file turns checking on for that file, and a project setting turns it on for all JavaScript files. If you only want to find errors, starting there needs no renaming. www.typescriptlang.org
  • The TypeScript handbook describes migrating a JavaScript project by letting JavaScript be compiled alongside TypeScript and renaming files one at a time. A team with time can follow it directly. www.typescriptlang.org

Questions

Why only one folder?

A small converted area finishes and can be judged. It also leaves you a working pattern, the configuration and the CI step, for converting the next folder yourselves or with another job.

Will the types catch bad data from my API?

No. Types are checked when the code is compiled, not when it runs. Checking incoming data at runtime is a separate piece of work.

Can you just turn on strict mode for the whole project?

That usually produces a long list of errors across code nobody has reviewed. Applying strict checks to one folder at a time keeps the number of errors manageable.

Ask about this job

What to send us, what comes later, and who owns what

Send us

  • The folder to convert, its approximate file and line counts, and what it does
  • How the project is built and run, and the Node.js version
  • Whether TypeScript is already installed anywhere in the project
  • The bugs or confusions that motivated the conversion

Later, once you agree

  • A controlled copy of the source with secrets removed, through the agreed company-controlled secure handoff
  • How to run the tests, the build and the linter
  • Any style or strictness rules your team already prefers for TypeScript
  • A company-controlled secure handoff agreed before access: no live passwords, keys, private code or customer records by ordinary email.

You own the code, build pipeline and hosting. We work from an authorised copy with secrets removed and return a pull request that your team reviews, merges and deploys. We never ask for passwords or tokens in your first message.

Add detail (optional)

A web address anyone can open, with no login in it. No code or logs.

We reply by email. Sending this emails your request to our team; nothing is kept in a website database. Please do not send passwords, keys or customer records. Privacy notice.

Email fallback: open your mail app

If website submission is unavailable, review and send the fallback email yourself. An email fallback is not a website receipt. Or write to hello@syntheticindustry.ai and say which job you mean.

Last revised 13 October 2026