The Wayback Machine - https://web.archive.org/web/20201208045303/https://github.com/appbaseio/reactivesearch/issues/1540
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataSearch onValueSelected with Typescript #1540

Open
arnaudjnn opened this issue Sep 3, 2020 · 0 comments
Open

DataSearch onValueSelected with Typescript #1540

arnaudjnn opened this issue Sep 3, 2020 · 0 comments
Labels
bug

Comments

@arnaudjnn
Copy link

@arnaudjnn arnaudjnn commented Sep 3, 2020

Affected Projects
React

Library Version: 3.12.1

Describe the bug
Receive the following ts error

No overload matches this call.
  Overload 1 of 2, '(props: Readonly<ReactiveListProps>): ReactiveList', gave the following error.
    Type '{ componentId: string; dataField: string; react: { and: string[]; }; size: number; render: ({ loading, error, data }: any) => Element; onValueSelected: (value: any, cause: any, source: any) => void; defaultQuery: () => { ...; } | ... 2 more ... | { ...; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactiveList> & Readonly<ReactiveListProps> & Readonly<...>'.
      Property 'onValueSelected' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactiveList> & Readonly<ReactiveListProps> & Readonly<...>'.
  Overload 2 of 2, '(props: ReactiveListProps, context?: any): ReactiveList', gave the following error.
    Type '{ componentId: string; dataField: string; react: { and: string[]; }; size: number; render: ({ loading, error, data }: any) => Element; onValueSelected: (value: any, cause: any, source: any) => void; defaultQuery: () => { ...; } | ... 2 more ... | { ...; }; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactiveList> & Readonly<ReactiveListProps> & Readonly<...>'.
      Property 'onValueSelected' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactiveList> & Readonly<ReactiveListProps> & Readonly<...>'

To Reproduce

Add onValueSelected props on DataSearch component with .tsx

Desktop (please complete the following information):

  • OS: mac
  • Browser Chrome
  • Version latest
@arnaudjnn arnaudjnn added the bug label Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.