You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type '(isEnabled: boolean) => JSX.Element' is not assignable to type 'ReactNode | ((hasFeature: boolean | FeatureGroup) => Element)'.
Type '(isEnabled: boolean) => JSX.Element' is not assignable to type '(hasFeature: boolean | FeatureGroup) => Element'.
Types of parameters 'isEnabled' and 'hasFeature' are incompatible.
Type 'boolean | FeatureGroup' is not assignable to type 'boolean'.
Type 'FeatureGroup' is not assignable to type 'boolean'.ts(2322)
My TS skills aren't good enough to debug this myself but I got the sense that perhaps a feature may have been added since the examples were added?
This gives no warning, but I'm not sure I'm handling the possibility of isEnabled being a FeatureGroup here:
Hi, thanks for all your work on this package :)
I might have found a documentation issue or perhaps a bug?
Copying this from the examples in the README:
Gives me this TypeScript warning:
My TS skills aren't good enough to debug this myself but I got the sense that perhaps a feature may have been added since the examples were added?
This gives no warning, but I'm not sure I'm handling the possibility of
isEnabled
being aFeatureGroup
here:The text was updated successfully, but these errors were encountered: