Domain: LS: Completion ListsExperience EnhancementHelp WantedSuggestion
仓库指标
- Star
- (48,455 star)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 9 个 PR)
描述
Bug Report
🔎 Search Terms
Intellisense stops working inside Array.map
🕗 Version & Regression Information
- Version 4.9.3
⏯ Playground Link
Playground link with relevant code
💻 Code
type Children = {
name: string;
};
type Parent = {
children: Children[];
};
let parents: Parent[] = [].map(() => ({ children: [].map(() => ({ /* Missing `name` property in intellisense */ })) }))
🙁 Actual behavior
Missing name property in intellisense

🙂 Expected behavior
Have name property in intellisense
Note
I know I can put map<Children> to show intellisense, but using complex types like prisma, and with a lot of nested array, it wouldn't be very convenient to keep putting map<Type> (even worse if the type is in another file needs to be imported)