downshift version: 1.22.1node version: 8.9.10npm (or yarn) version: yarn 0.27.5What you did:
Tried following the autosuggest example in TypeScript.
What happened:
Could not use the type property on onUserAction's callback parameter - as seen here.
Problem description:
The typings for onUserAction options do not contain the type string which leads to the usual
Property 'type' does not exist on type 'StateChangeOptions' error.
Suggested solution:
The typings need to be updated. Also, it seems that the . I can open a PR with these fixes.onUserAction callback is not documented
EDIT: Just realized its plainly stated that this wont be documented.
I'd be willing to accept a pull request to update the TypeScript definitions. I'm warming up to the "experimental feature" anyway :)
If no one's taking this, I've got time to work on it.
Closing because this has already been merged.
Most helpful comment
If no one's taking this, I've got time to work on it.