TypeScript
TypeScript copied to clipboard
Deprecation error message reporting method type as deprecated instead of method name
🔎 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
Not a language service thing