You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the viewer, there is no contextualType for this selection. However when I use the TS compiler API in my script, this Node does have a contextual type (accessed via checker.getContextualType(objectLiteralExpression)).
@OliverJAsh I think that internal property is just a cached value on the Node, so it displaying undefined there seems correct in that it’s just displaying the property values of the node. Maybe it would be useful to show the contextual type in the output elsewhere.
According to the viewer, there is no
contextualType
for this selection. However when I use the TS compiler API in my script, this Node does have a contextual type (accessed viachecker.getContextualType(objectLiteralExpression)
).https://ts-ast-viewer.com/#code/CYUwxgNghgTiAEYD2A7AzgF3gMwFzwAoAPfAb3gAcYkL8UBXAWwCMQZ4BfASngF4A+ePRQBrFEgDuKANwAobAXJUa+AIycu0oA
The text was updated successfully, but these errors were encountered: