ts-morph
ts-morph copied to clipboard
`hasQuestionToken` of Anonymous Type
Like https://github.com/dsherret/ts-morph/issues/559, but for an Anonymous Type:
if (type.isAnonymous()) {
type.getApparentProperties().map(prop => {
// prop.hasQuestionToken() ?
});
}