xxxxxxxxxx
//@ts-ignore
ignore this line
//Make sure typescript is installed in your system to use @ts-ignire
xxxxxxxxxx
// @ts-ignore
ignores only this line
// @ts-nocheck - may need to be at the start of file
ignores the whole document
xxxxxxxxxx
function sum(a: number, b: number): number {
// @ts-ignore
return a + b; // This line will ignore type checking
}