Skip to content
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
@milesj

Description

@milesj

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions