Given type Mapping = Record<'success' | 'error', React.ReactNode>.
How do I get the typescript.Type using the compiler API?
The symbol of Mapping has two properties as expected but each property symbol does not have a type.
In { success: React.ReactNode, error: React.ReactNode } you could get the type for each property by using checker.getTypeOfSymbolAtLocation(symbol, symbol.declarations[0]) but this doesn
t seem to work for mapped types