"Find Usages" for Zod types or schemas in WebStorm
I just started using Zod for TypeScript definitions, but the "Find usage" fails to locate any occurrences of a field like "title" in inferred types from Zod schemas. Is it a bug or just WebStorm (2025.2) doesn't support it for inferred types from Zod schemas?
Example:
export const CompetitionSchema = z.object({
id: z.number(), // When you use "Find Usage" on it, nothing found.
title: z.string().nonempty()
}export type Competition = z.infer<typeof CompetitionSchema>;
请先登录再写评论。
Please could you check if turning Enable service-powered type engine on in Settings | Languages & Frameworks | TypeScript and re-starting the IDE makes things any better?
Elena Pogorelova It doesn't work. I enabled it, cleared the cache and restarted, but all of the fields in CompetitionSchema still can't be found. I use zod v4.
Possible related issue: https://youtrack.jetbrains.com/issue/WEB-56966/Find-usages-in-TypeScript-does-not-work-with-transformed-types-such-as-those-inferred-by-Zod
Yes, WEB-56966 does indeed look similar. Please vote for it to get notified of any progress.