Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 6
    This is a very important distinction about interfaces vs classes! I wish there was a more idiomatic way to do this, but this suggestion works well. Commented Aug 19, 2020 at 13:06
  • Question focusing on interface property types Commented Sep 1, 2022 at 15:32
  • can you do this in tsx file? React is expecting <Bike> to be an component, not a TS type. Commented Jan 25, 2023 at 0:57