Skip to content

chore(toolkit): remove redundant and unused type declarations - #5356

Open
aryaemami59 wants to merge 1 commit into
reduxjs:masterfrom
aryaemami59:chore/toolkit/small-type-fixes
Open

chore(toolkit): remove redundant and unused type declarations#5356
aryaemami59 wants to merge 1 commit into
reduxjs:masterfrom
aryaemami59:chore/toolkit/small-type-fixes

Conversation

@aryaemami59

Copy link
Copy Markdown
Member

Summary

  • remove a duplicate overload from ConditionFunction
  • return TypedCreateListenerEntry instead of TypedStopListening from TypedCreateListenerEntry.withTypes()
  • fold the trailing & { effect } intersection into FallbackAddListenerOptions
  • remove the redundant leading RefetchConfigOptions & from ConfigState, which ModifiableConfigState already intersects
  • remove the unused generic type parameter from AnyQueryActionCreator

- remove a duplicate overload from `ConditionFunction`
- return `TypedCreateListenerEntry` instead of `TypedStopListening` from `TypedCreateListenerEntry.withTypes()`
- fold the trailing `& { effect }` intersection into `FallbackAddListenerOptions`
- remove the redundant leading `RefetchConfigOptions &` from `ConfigState`, which `ModifiableConfigState` already intersects
- remove the unused generic type parameter from `AnyQueryActionCreator`
@aryaemami59 aryaemami59 added this to the 3.0 milestone Aug 4, 2026
@aryaemami59 aryaemami59 self-assigned this Aug 4, 2026
@aryaemami59 aryaemami59 added RTK-Query Issues related to Redux-Toolkit-Query TypeScript Issues related to TypeScript. labels Aug 4, 2026
@codesandbox

codesandbox Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit ef8660a
🔍 Latest deploy log https://app.netlify.com/projects/redux-starter-kit-docs/deploys/6a7150b82cbe1e0008bbad57
😎 Deploy Preview https://deploy-preview-5356--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented Aug 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

@reduxjs/rtk-codemods

npm i https://pkg.pr.new/@reduxjs/rtk-codemods@ef8660a -D
yarn add https://pkg.pr.new/@reduxjs/rtk-codemods@ef8660a.tgz -D
pnpm add https://pkg.pr.new/@reduxjs/rtk-codemods@ef8660a.tgz -D
bun add https://pkg.pr.new/@reduxjs/rtk-codemods@ef8660a.tgz -D

@rtk-query/codegen-openapi

npm i https://pkg.pr.new/@rtk-query/codegen-openapi@ef8660a -D
yarn add https://pkg.pr.new/@rtk-query/codegen-openapi@ef8660a.tgz -D
pnpm add https://pkg.pr.new/@rtk-query/codegen-openapi@ef8660a.tgz -D
bun add https://pkg.pr.new/@rtk-query/codegen-openapi@ef8660a.tgz -D

@rtk-query/graphql-request-base-query

npm i https://pkg.pr.new/@rtk-query/graphql-request-base-query@ef8660a -D
yarn add https://pkg.pr.new/@rtk-query/graphql-request-base-query@ef8660a.tgz -D
pnpm add https://pkg.pr.new/@rtk-query/graphql-request-base-query@ef8660a.tgz -D
bun add https://pkg.pr.new/@rtk-query/graphql-request-base-query@ef8660a.tgz -D

@reduxjs/toolkit

npm i https://pkg.pr.new/@reduxjs/toolkit@ef8660a -D
yarn add https://pkg.pr.new/@reduxjs/toolkit@ef8660a.tgz -D
pnpm add https://pkg.pr.new/@reduxjs/toolkit@ef8660a.tgz -D
bun add https://pkg.pr.new/@reduxjs/toolkit@ef8660a.tgz -D

commit: ef8660a

@aryaemami59
aryaemami59 marked this pull request as ready for review August 4, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RTK-Query Issues related to Redux-Toolkit-Query TypeScript Issues related to TypeScript.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant