-
Notifications
You must be signed in to change notification settings - Fork 943
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
Types networking error (TypeScript) #1491
Comments
I am getting this as well. Have you found a workaround? |
same issue with these 3 plugins: used for now this to not type check them: |
Can also use the |
OMG, really? No way ....😆 |
Yah, really 😀 |
Describe the bug
We have an incorrect type in networking method:
Error
Argument of type '(reactotron: ReactotronCore) => { onConnect: () => void; }' is not assignable to parameter of type 'PluginCreator<ReactotronReactNative & { createEnhancer: (skipSettingStore?: boolean | undefined) => (createStore: any) => (reducer: any, ...args: any[]) => any; setReduxStore: (store: any) => void; reportReduxAction: (action: { ...; }, ms: number, important?: boolean | undefined) => void; }>'. Types of parameters 'reactotron' and 'client' are incompatible. Type 'ReactotronReactNative & { createEnhancer: (skipSettingStore?: boolean | undefined) => (createStore: any) => (reducer: any, ...args: any[]) => any; setReduxStore: (store: any) => void; reportReduxAction: (action: { ...; }, ms: number, important?: boolean | undefined) => void; }' is not assignable to type 'ReactotronCore'. Types of property 'options' are incompatible. Type 'ClientOptions<ReactotronReactNative & { createEnhancer: (skipSettingStore?: boolean | undefined) => (createStore: any) => (reducer: any, ...args: any[]) => any; setReduxStore: (store: any) => void; reportReduxAction: (action: { ...; }, ms: number, important?: boolean | undefined) => void; }>' is not assignable to type 'ClientOptions<ReactotronCore>'.Type 'ReactotronCore' is not assignable to type 'ReactotronReactNative & { createEnhancer: (skipSettingStore?: boolean | undefined) => (createStore: any) => (reducer: any, ...args: any[]) => any; setReduxStore: (store: any) => void; reportReduxAction: (action: { ...; }, ms: number, important?: boolean | undefined) => void; }'. Type 'ReactotronCore' is missing the following properties from type 'ReactotronReactNative': useReactNative, setAsyncStorageHandler, log, logImportant, and 15 more.ts(2345)
Reactotron version
5.1.7
The text was updated successfully, but these errors were encountered: