Skip to main content


Today I learned… if you are doing something naughty in JavaScript* (and let’s face it, of course you are) that TypeScript’s type checker is giving you an error for and you – being you – want to keep being naughty (because you can and that’s half the fun), there’s a better way to silence the error than using @ts-ignore which, umm, just ignores it.

Instead, you can use @ts-expect-error (with the error message, to remind yourself what you’re expecting).

This way, if the error ever goes away (which would likely signal… uh… an error), you will be notified.

So, yeah, how’s your morning going?

* Like returning a proxy from a constructor instead of an instance of the class itself.

#JavaScript #TypeScript #typeChecking #proxy #tsIgnore #tsExpectError

in reply to Teacher Muhammad Hussein

This entry was edited (4 days ago)
in reply to Aral Balkan

@MohammedHusein @casey @joynewacc @raphaellakay @staff Hi Mohammed,

A quick update: I just saw that you scheduled two other verification calls.

I’ve now cancelled those.

Please don’t schedule any more calls using different accounts until we have sorted out this issue with your multiple accounts and the unsolicited messages.

After this is sorted out and we have an assurance from you that you are happy to keep just one account and not send unsolicited messages, we will ask you to schedule a verification call using your one and only Mastodon account (whichever one you decide to keep).

Please let us know at your convenience how you would like to proceed.

Thank you.

in reply to Aral Balkan

@casey @joynewacc @staff @raphaellakay

Hello Mastodon Support Team,

My account was suspended, and I believe this was a misunderstanding. I use Mastodon only to share updates about my situation in Gaza and to communicate respectfully with others. I did not intend to violate any rules.

Please review my case and consider restoring my account. I am ready to correct anything if needed.

Thank you for your understanding.

Kind regards,
Mohammed Hussein