Why are some properties of metadataCache only available in JS and not TS?

I appreciate your help with this, especially given my inexperience in TS. I was hoping to develop a plugin that could create a graph view of links between headers (as discussed in this post), and my main roadblock that remains is knowing how to get access to the actual links (e.g., “mydoc#myheader”, not just “mydoc” as seen with resolvedLinks) and their locations in-document to identify which header the link is coming from (also missing from resolvedLinks). So, given that this information can only be found with the getLinks() method in JS, I might be stuck til further development is made.