Error Suppression
Chester Wyke April 14, 2023 Updated: April 26, 2025 #TypeScriptSource: https://bobbyhadz.com/blog/typescript-ignore-error
Use // @ts-expect-error
on the previous line to suppress errors. This is to be preferred over // @ts-nocheck
(which is for a whole file) and // @ts-ignore
which gives no warning if the error is no longer present.