You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now TagDescription is defined at '@reduxjs/toolkit/dist/query/endpointDefinitions'. It would be nice if it could be added to the index and exported from @reduxjs/toolkit/dist/query' i.e. `import { type TagDescription } from '@reduxjs/toolkit/dist/query'
The TagDescription type would be nice to help just dry up code and share among multiple endpoints
The below example is a simplified version of what I am talking about, where TagTypes is an already defined Enum of tags.
It would be nice if the above was possible and I could just set the tags variable to to be the correct type and not need to use as const and tags as ({ type: TagType; id: string } | TagType)[],all over the place to get this to work out.
The text was updated successfully, but these errors were encountered:
Right now
TagDescription
is defined at '@reduxjs/toolkit/dist/query/endpointDefinitions'. It would be nice if it could be added to the index and exported from @reduxjs/toolkit/dist/query' i.e. `import { type TagDescription } from '@reduxjs/toolkit/dist/query'The
TagDescription
type would be nice to help just dry up code and share among multiple endpointsThe below example is a simplified version of what I am talking about, where TagTypes is an already defined Enum of tags.
It would be nice if the above was possible and I could just set the
tags
variable to to be the correct type and not need to useas const
andtags as ({ type: TagType; id: string } | TagType)[],
all over the place to get this to work out.The text was updated successfully, but these errors were encountered: