Microsoft/TypeScript
Deprecation error message reporting method type as deprecated instead of method name
開放
#62,396 建立於 2025年9月4日
BugDomain: Error MessagesHelp Wanted
倉庫指標
- 星標
- (108,860 顆星)
- PR 合併指標
- (平均合併 6天 17小時) (30 天內合併 9 個 PR)
描述
🔎 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
💻 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