Typescript confusion with Option #854
Unanswered
philicious
asked this question in
Q&A
Replies: 1 comment 10 replies
-
Can you provide a minimal repo or TypeScript playground that demonstrates the issue? Also confirm which RQB version you're using. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I am having a hard time with Typescript and RQB in regard of the
Option
type. When I access its properties.name
or.value
I gethowever I do see the type correctly as
if I cast to
FlexibleOption
, it helps a little as it then recognizes them asany
. however that conflicts with my@typescript-eslint/no-unsafe-....
linter settingsother types of RQB are working fine.
does that ring a bell?
Beta Was this translation helpful? Give feedback.
All reactions