question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to enable $TSFixMe aliases?

See original GitHub issue

What’s the easiest way to enable the aliases for any etc, since they are disabled by default? Also, is there a way to provide custom aliases?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
SK-CSEcommented, Aug 24, 2021

below steps worked for me 🥳

create a new file named tsfixme.d.ts inside the src folder and paste the below

type $TSFixMe = any;
type $TSFixMeFunction = (...args: any[]) => any;

and run npx ts-migrate migrate --aliases tsfixme .

3reactions
ajaskacommented, Oct 22, 2020

If you’re running the migrate script by itself, you want to pass --aliases=tsfixme

Read more comments on GitHub >

github_iconTop Results From Across the Web

ts-migrate - npm
It's just an alias to any : type $TSFixMe = any; . We use it at Airbnb for simplifying the migration experience. We...
Read more >
ts-migrate: A Tool for Migrating to TypeScript at Scale - Medium
[2]: We introduced custom aliases for any type — $TSFixMe and for the function type — $TSFixMeFunction = (…args: any[]) => any; ....
Read more >
"Automatically Migrating to TypeScript with ts ... - YouTube
(Evan Shaw) Learn about ts-migrate, an open source tool to automate the process of converting a JavaScript code base to TypeScript.
Read more >
How To Use Type Aliases in TypeScript - DigitalOcean
Using TypeScript aliases will help you to accomplish this. In this tutorial, you will refactor code that uses string literals to include aliases...
Read more >
Fix the $TSFixMe (any alias) type definitions. #26 - Issuehunt
You can request for a bounty in order to promote it! Request a bounty. Fix the $TSFixMe (any alias) type definitions # ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found