How would one use the TypeScript compiler API 4.2+ (or ts-morph 10+) to extract from the following:
export type A = Record<string,number>
- The fact that exported type alias A
- is a reference to
Record - and passes it
string&number - and that
Recordis also a type alias - with two type parameters,
- getting each one's names/constraints/defaults.