Bug Report Checklist
Overview
tsutils has a collectVariableUsage API: microsoft/TypeScript#28026 -> https://github.com/ajafff/tsutils/blob/03b4df15d14702f9c7a128ac3fae77171778d613/util/usage.ts#L162-L164. We haven't ported that over yet.
I use it in TypeStat, which means not having it is blocking JoshuaKGoldberg/TypeStat#1123.
Additional Info
cc @bradzacher @RebeccaStevens - do you see any reason not to port the old collectVariableUsage API here?
Note that ajafff/tsutils#38 tracks refactoring the API to be more type aware. I don't have the energy to make that port. But I suppose we could always take it in as a followup.
Bug Report Checklist
mainbranch of the repository.Overview
tsutilshas acollectVariableUsageAPI: microsoft/TypeScript#28026 -> https://github.com/ajafff/tsutils/blob/03b4df15d14702f9c7a128ac3fae77171778d613/util/usage.ts#L162-L164. We haven't ported that over yet.I use it in TypeStat, which means not having it is blocking JoshuaKGoldberg/TypeStat#1123.
Additional Info
cc @bradzacher @RebeccaStevens - do you see any reason not to port the old
collectVariableUsageAPI here?Note that ajafff/tsutils#38 tracks refactoring the API to be more type aware. I don't have the energy to make that port. But I suppose we could always take it in as a followup.