Closed JacobJaffe closed 2 weeks ago
That seems pretty odd.
Can you share a project or CodeSandbox that shows this happening?
What does TS show as the actual type of newApi.util.upsertQueryEntries
itself?
The TS type of upsertQueryEntries
appears to be the same:
(property) upsertQueryEntries: UpsertEntries<{
getFoo: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError, {}, FetchBaseQueryMeta>, never, string, "foo">;
}>
I'll put together a minimal sharable project that reproduces this shortly
I've been unable to reproduce this in a fresh environment, and am no longer seeing this in my project after reinstalling dependencies. Closing this issue.
Hello, I'm working on migrating to use
upsertQueryEntries
(and very excited about it!)Any use of
upsertQueryEntries
seems to trip mytypescript-eslint/no-unsafe-call
/typescript-eslint/no-unsafe-assign
linting.I haven't encountered this elsewhere using RTK -- I'm not sure what's going on here, since the action creator seems like it would be well typed.
Here's a minimal example of this: