Open
Description
I just updated to v3.4.1, and when I run the Typescript compiler on my project I get the following errors:
node_modules/react-native-appodeal/src/RNAppodeal.ts:309:8 - error TS7006: Parameter 'parameters' implicitly has an 'any' type.
309 (parameters) => parameters.status
~~~~~~~~~~
node_modules/react-native-appodeal/src/RNAppodeal.ts:315:8 - error TS7006: Parameter 'parameters' implicitly has an 'any' type.
315 (parameters) => parameters.status
~~~~~~~~~~
node_modules/react-native-appodeal/src/RNAppodeal.ts:321:8 - error TS7006: Parameter 'parameters' implicitly has an 'any' type.
321 (parameters) => parameters.status
~~~~~~~~~~
Found 3 errors in the same file, starting at: node_modules/react-native-appodeal/src/RNAppodeal.ts:309
This is my tsconfig.json
:
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"jsx": "react-native",
"lib": ["dom", "esnext"],
"moduleResolution": "node",
"module": "commonjs",
"noEmit": true,
"resolveJsonModule": true,
"strict": true,
"esModuleInterop": true,
"baseUrl": "./src",
"typeRoots": ["./node_modules/@types", "./src/typings"]
},
"extends": "expo/tsconfig.base"
}
It's not enough to exclude node_modules
(which happens by default anyway), because RNAppodeal.ts
has to be imported when initialize Appodeal, see this comment for details.
Metadata
Metadata
Assignees
Labels
No labels