Replies: 2 comments
-
I agree. In the index.d.ts line 254, OptionOnSelectData is exported, but I can't import it. I can import the one above it, OptionGroupProps, but not OptionOnSelectData. The error is " Module '"@fluentui/react-components"' has no exported member 'OptionOnSelectData'.ts(2305) " I am trying to avoid using an "any" in React Typescript on this line: Is there a way to import this, or a better way to type an onchange event for the Fluent Dropdown onOptionSelect? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You should be able to type the handler as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I figure the typescript missing type definitions for properties like:
e: SelectionEvents, data: OptionOnSelectData
or (e: ComboboxBaseOpenEvents, data: ComboboxBaseOpenChangeData
They are shown in the properties of Select and Combo box events but VC code does not know where to import from.
I did not find where to import them from.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions