Skip to content

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

@andrewbranch

Description

@andrewbranch

🔎 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions