Skip to content

Question: Does importing type from parent not cause a circular dependency? #1

Description

@webbertakken

Nice repo!

Does importing type from parent not cause a circular dependency?

import { IState as Props } from "../App";
interface IProps {
people: Props["people"]
}

I've not seen this way of passing props before, is it based on any documentation? I could not find any references in the repository or description about it. I'd love to learn :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions