-
Notifications
You must be signed in to change notification settings - Fork 932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V8: Type error without skipLibCheck #1521
Comments
Hi! Thanks for reporting the issue! Hope we can get it properly fixed soon. As for the last usage, I don't understand it. getMenuProps: <Options>(
options?: GetMenuPropsOptions & Options,
otherOptions?: GetPropsCommonOptions,
) => Overwrite<GetMenuPropsReturnValue, Options>
Let me know what you think. Thanks! |
Line 2 in b62fe05
If you need to expose stuff that use react-native typings, you really should be publishing a separate package. |
@akheron it should be listed in the devDependencies. All things considered, I might just remove its usage, since it's not very important. Any issue with the original issue in this ticket? |
#1524 <- I think this replacement should be good enough. |
Yes, but Removing react-native’s usage from the typings sounds good :) |
@srapilly @akheron do you thing the suggestion from above will solve the issue? export interface GetRootPropsOptions<E extends HTMLElement> {
refKey?: string
ref?: React.Ref<E>
} As for this concern Would there be any relevant cases where the Ref content would not be an Let's agree upon the best result so we can merge the fix. Thanks! |
Should be fixed by #1536. |
downshift
version: 8.0.0node
version: 19.9.0npm
(oryarn
) version: 9.6.3What happened:
We are using the newest V8 version, thanks for the nice release :)
We have a small issue with the type in our repository, we don't use
skipLibCheck
and this cause the following type issue:TS2314: Generic type 'RefObject ' requires 1 type argument(s).
We don't want to use
skipLibCheck
in our repository because we have somed.ts
files that we want to type check and it's not yet possible to only skip the check for library (microsoft/TypeScript#40426)Reproduction repository:
latest https://github.com/downshift-js/downshift V8 with
skipLibCheck: false
Problem description:
Suggested solution:
I tried to do something like this in the type definition,
instead of
it seems to work, but seems a bit hard to use at first glance where I could need to do something like this when using a function to get the props:
The text was updated successfully, but these errors were encountered: