TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

Deprecation error message reporting method type as deprecated instead of method name

Open andrewbranch opened this issue 4 months ago • 1 comments

🔎 Search Terms

deprecated type

🕗 Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________

⏯ Playground Link

https://www.typescriptlang.org/play/?ts=5.9.2#code/JYWwDg9gTgLgBAbzgLzgXzgMyhEcBEyEAJvgNwBQFAxhAHYDO8MDtdmwA5gEoCGA7gGVqACwCmIXnAC8KAHQQARgCsx1GAAoEFOLri1wwADZioAeTAxg9BgC55vOgE8NASgppXcsLwZMROACunCJulEA

💻 Code

import { z } from "zod";

const tsconfigRawSchema = z.object({
    compilerOptions: z.any()
}).passthrough();

🙁 Actual behavior

Hover passthrough:

'(): ZodObject<{ compilerOptions: ZodAny; }, $loose>' is deprecated.

🙂 Expected behavior

'passthrough()' is deprecated.

or something like that.

Additional information about the issue

No response

andrewbranch avatar Sep 04 '25 20:09 andrewbranch

Not a language service thing

andrewbranch avatar Dec 03 '25 00:12 andrewbranch