Skip to main content
Home

latest

Package to help your team do the typescript migration of typescript , react repository by allowing to push more stricter option and not compromise on the current setup

This package works with Node.js, BunIt is unknown whether this package works with Cloudflare Workers, Deno, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
This package works with Bun
It is unknown whether this package works with Browsers
JSR Score
70%
Published
10 months ago (1.0.1)

A migration tool from Typescript To Typescript

Why ?

Adopting actually strict typescript is hard.

Well some times you don't have time to fix all compilation errors, but you don't want to let introduce any new, then just suppress all the existing ones and let the team fix all the rest with the flow

So with any typescript migration just go @ts-expect-error and then just adopt it incrementally

How to use it :D

Actually I'm noob in jsr XD

So you firstly install it in your repository:

npx or any x

npx jsr add @pawk3k/ts-migrator

Then you use it from the root of your package:

node ./node_modules/@pawk3k/ts-migrator/mod.js .

Future Plans

  • Add auto fix tool to remove no longer used @ts-expect-errors to automate the process of this migration. It might be useful if you have a lot of untyped process.env for example then you add the type and now you have to manually go through all of the files that have it - not good

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@pawk3k/ts-migrator

Import symbol

import * as ts_migrator from "@pawk3k/ts-migrator";
or

Import directly with a jsr specifier

import * as ts_migrator from "jsr:@pawk3k/ts-migrator";

Add Package

pnpm i jsr:@pawk3k/ts-migrator
or (using pnpm 10.8 or older)
pnpm dlx jsr add @pawk3k/ts-migrator

Import symbol

import * as ts_migrator from "@pawk3k/ts-migrator";

Add Package

yarn add jsr:@pawk3k/ts-migrator
or (using Yarn 4.8 or older)
yarn dlx jsr add @pawk3k/ts-migrator

Import symbol

import * as ts_migrator from "@pawk3k/ts-migrator";

Add Package

npx jsr add @pawk3k/ts-migrator

Import symbol

import * as ts_migrator from "@pawk3k/ts-migrator";

Add Package

bunx jsr add @pawk3k/ts-migrator

Import symbol

import * as ts_migrator from "@pawk3k/ts-migrator";