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
timorl likes this.

Claudius
in reply to Aral Balkan • • •Gerard
in reply to Aral Balkan • • •Aral Balkan
in reply to Gerard • • •Teacher Muhammad Hussein
in reply to Aral Balkan • • •Aral Balkan
in reply to Teacher Muhammad Hussein • • •Hi Mohammed,
I need to ask you to do a few things before we can reschedule your verification interview.
Please, first and foremost, read the guide here that spells out the rules:
gaza-verified.org/guide-arabic…
Most importantly, your accounts are getting suspended because you’re sending unsolicited messages to people (as mentions and/or as direct messages) and, when an account gets suspended, you’re creating a new one.
Please:
- Let me know here (or file an appeal to mastodon.social) stating that you will stop sending unsolicited messages and creating multiple accounts. We can then look into getting your main account (the first one unsuspended). Once that happens, please delete the other accounts.
- You scheduled two different verification calls today using two different accounts, taking up a space that should have gone to someone else. Please refrain from scheduling any new verification calls until we have sorted out the issu
... Show more...Hi Mohammed,
I need to ask you to do a few things before we can reschedule your verification interview.
Please, first and foremost, read the guide here that spells out the rules:
gaza-verified.org/guide-arabic…
Most importantly, your accounts are getting suspended because you’re sending unsolicited messages to people (as mentions and/or as direct messages) and, when an account gets suspended, you’re creating a new one.
Please:
- Let me know here (or file an appeal to mastodon.social) stating that you will stop sending unsolicited messages and creating multiple accounts. We can then look into getting your main account (the first one unsuspended). Once that happens, please delete the other accounts.
- You scheduled two different verification calls today using two different accounts, taking up a space that should have gone to someone else. Please refrain from scheduling any new verification calls until we have sorted out the issues with your accounts and you are down to having a single account.
Thank you.
CC @casey @joynewacc @raphaellakay @staff
غزة موثقة
gaza-verified.orgAral Balkan
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.
Teacher Muhammad Hussein
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