Skip to content

preferCacheValue couldn't get the types correctly #3072

@bryanprimus

Description

@bryanprimus

I have seen this discussion and believe that this has already resolved within the new version of rtk query

but as of my use, i still don't get the types correctly

image

I thought because i'm not using the latest version

but i have upgraded my rtk query to the latest version, also i have updated my typescript to the latest version as well.

and still don't get the types of preferCacheValue correctly in the second argument of the trigger lazyQuery

{
  "@reduxjs/toolkit": "^1.9.1",
  "typescript": "^4.9.4"
}

this is my tsconfig

{
  "extends": "@tsconfig/react-native/tsconfig.json",
  "compilerOptions": {
    "incremental": true,
    "skipLibCheck": true,
    "baseUrl": "./src",
    "paths": {
      "@assets": ["assets"]
    }
  },
  "exclude": ["appium"]
}

Note: The functionality of works though, only the types that doesn't work

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