Skip to content

Typing error for typescript #307

Description

@xiongemi

I was trying to include Feature for my tsx file; however, my code editor shows me a typing error.

code:

<Feature
            name="country"
            inactiveComponent={<Loading />}
            activeComponent={<Loading />}
          />

Error:

No overload matches this call.
  Overload 1 of 2, '(props: { children: (args: { features: FeatureNames; }) => Element; }): Element', gave the following error.
    Type '{ name: string; inactiveComponent: Element; activeComponent: Element; }' is not assignable to type 'IntrinsicAttributes & { children: (args: { features: FeatureNames; }) => Element; }'.
      Property 'name' does not exist on type 'IntrinsicAttributes & { children: (args: { features: FeatureNames; }) => Element; }'.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions