@ts-expect-error & @ts-ignore
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
Komentet // @ts-ignore dhe // @ts-expect-error e heshtin gabimin e rreshtit tjetër. @ts-expect-error është më i mirë: po u rregullua gabimi më vonë, të paralajmëron që komenti s'duhet më.
EnglishEN
The comments // @ts-ignore and // @ts-expect-error silence the error on the next line. @ts-expect-error is better: if the error gets fixed later, it warns you the comment isn't needed any more.
Si ta mendosh
Si një shënim „e di, do ta rregulloj“ — por që të kujton ta heqësh kur e ke rregulluar.
Lexoje në anglisht
Like a note saying “I know, I'll fix it” — that reminds you to remove it once you have.
Shembull koditypescript
// @ts-expect-error — libraria e vjetër s'ka tipe për këtë
vjeter.metodaESekrete();