xxxxxxxxxx
function sum(a: number, b: number): number {
// @ts-ignore
return a + b; // This line will ignore type checking
}
xxxxxxxxxx
//@ts-ignore
ignore this line
//Make sure typescript is installed in your system to use @ts-ignire
xxxxxxxxxx
//@ts-ignore
function example() {
// Code that would normally raise an error
}
example(); // No error will be thrown