Skip to content

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

Open

Description

πŸ”Ž 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

Activity

  1. added
    Domain: LS: Quick Info
    on Oct 15, 2025
  2. locked as resolved and limited conversation to collaborators on Dec 3, 2025
  3. andrewbranch commented on Dec 3, 2025

    @andrewbranch
    MemberAuthor

    Not a language service thing

  4. added
    Domain: Error Messages
    on Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDomain: Error Messages

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions