8000 Implicit any Typescript errors in RNAppodeal.ts · Issue #139 · appodeal/react-native-appodeal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Implicit any Typescript errors in RNAppodeal.ts #139
Open
@Ninjaman494

Description

@Ninjaman494

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0