Type error for options and style base #5352
Unanswered
rutanshu-chalkbooks
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using TS for implementation using react-select and passing options prop to my custom component using react-select. When I define my type for the options using a custom interface, the
Select
component throws a type error. I searched online for various implementations and followed the same however the error is yet persisting. Having the same issue forbase
passed in style.I would like to understand how to go about this. Have attached the code, errors and dependencies' version below.
Errors -
Type 'TSelectInput[]' is not assignable to type 'readonly (string | GroupBase<string>)[]'.
Type '{ control: (base: CSSProperties) => { border: string; paddingTop: number; paddingBottom: number; paddingLeft: number; paddingRight: number; borderRadius: number; accentColor?: Property.AccentColor | undefined; ... 780 more ...; vectorEffect?: Property.VectorEffect | undefined; }; }' is not assignable to type 'StylesConfig<string, false, GroupBase<string>>'.
package.json
Beta Was this translation helpful? Give feedback.
All reactions