Skip to content
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

[Bug] Any support on RN 0.70 with TypeScript 3.8? #326

Open
vasteez opened this issue May 12, 2023 · 0 comments
Open

[Bug] Any support on RN 0.70 with TypeScript 3.8? #326

vasteez opened this issue May 12, 2023 · 0 comments

Comments

@vasteez
Copy link

vasteez commented May 12, 2023

Describe the bug
On this package version 0.8.0 (I am upgrading from 0.6.6 due to new RN) I get a bunch of typescript errors, probably due to my TS being 3.8.

Additional context
I get these kind of errors

node_modules/react-native-mmkv-storage/dist/src/hooks/useMMKV.d.ts:76:17 - error TS1005: ',' expected.

76         setValue: (value: T | ((prevValue: T) => T)) => void
                   ~

node_modules/react-native-mmkv-storage/dist/src/types/index.d.ts:50:48 - error TS1005: ',' expected.

50 export declare type GenericReturnType<T> = [key: string, value: T | null | undefined];
                                                  ~

node_modules/react-native-mmkv-storage/dist/src/types/index.d.ts:50:63 - error TS1005: ',' expected.

50 export declare type GenericReturnType<T> = [key: string, value: T | null | undefined];
                                                                 ~

Is a higher TS version a must or is there any patch for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant