This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
TSTypeReference does not emit for React.SFC #476
Closed
Description
What version of TypeScript are you using?
2.8.1
What version of typescript-eslint-parser
are you using?
0.12.0
What code were you trying to parse?
export interface PriceProps {
// Some props
}
export const Price: React.SFC<PriceProps> = function Price(props) {}
What did you expect to happen?
I'm trying to write a rule that verifies the generics in React.SFC
are correct, however, the TSTypeReference
for React.SFC
is never emitted, so I'm unable to capture and and write a rule around it.
For example, this doesn't even log.
TSTypeReference(node) {
console.log(node);
},
What happened?
Doesn't work.