TS2578TS2578 — Unused @ts-expect-error
A @ts-expect-error directive is present but no error occurs on the next line.
TS2345The argument passed to a function is not compatible with the expected parameter type.
You are passing a value of one type where a different type is expected. This often happens when passing a number where a string is expected, or when object shapes do not match. Union types and optional properties can also cause this mismatch.
Check the function signature to see what type is expected. Cast the value if you are certain it is safe, or transform the data to match the expected type. Use type guards to narrow union types before passing them.
function greet(name: string) {}
greet(42);TS2578A @ts-expect-error directive is present but no error occurs on the next line.
TS2322A value of one type cannot be assigned to a variable or property of a different, incompatible type.
TS2339TypeScript cannot find the specified property on the given type.
TS6133A variable, import, or parameter is declared but its value is never read.
TS2538The type of the index expression is not valid for indexing the object.
TS2565A class property with a definite assignment assertion (!) is never read.