Turn off certain errors in TypeScript

Is there a way to turn off error checking for certain errors in TypeScript? For example, many of our uses of async functions show this error in our editors: "An async function or method must have a valid awaitable return type."

We would really like to not ever see that error again, without changing our code and adding types that we don't feel like adding or that we don't know until runtime. It looks like this error has the code 1057 from this source file

It would be nice to turn off errors by their code number.

Answers


It would be nice to turn off errors by their code number.

This is not supported at the moment. Feel free to create an issue here https://github.com/Microsoft/TypeScript/issues


Need Your Help

jQuery's tooltip issue with position and hover

jquery tooltip hover

I have the following code example (see below). My problem is that the tooltip doesn't show the "old" text after I go away with the cursor - any ideas?

Does MINLOC work for arrays beginning at index 0? (Fortran 90/95)

c arrays fortran min intrinsics

After using C for a while, I went back to Fortran and allocated the arrays in my code from index 0 to N: