JoshuaKGoldberg / ts-api-utils

Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️
https://joshuakgoldberg.github.io/ts-api-utils/
MIT License
55 stars 6 forks source link

fix: handle const Type Parameters #519

Open RebeccaStevens opened 3 months ago

RebeccaStevens commented 3 months ago

PR Checklist

Overview

Initial attempt at resolving the issue. I've got no idea if this is the correct approach or not. There might be some cases which this PR doesn't currently handle.

RebeccaStevens commented 3 months ago

@JoshuaKGoldberg I just cleaned up this PR a bunch and made it a bit more robust.