This commit is contained in:
Nathan Bierema 2023-01-07 14:40:02 -05:00
parent 50c61db47c
commit 0c2edba0b5
2 changed files with 2 additions and 2 deletions

View File

@ -152,4 +152,4 @@ export const POKEMON_NAMES = [
'mew',
] as const;
export type PokemonName = typeof POKEMON_NAMES[number];
export type PokemonName = (typeof POKEMON_NAMES)[number];

View File

@ -293,7 +293,7 @@ function computeRtkQueryRequests(
const [queryCacheKey, queryCache] = queryCacheEntries[i];
const requestId: string =
type === 'queries'
? (queryCache as typeof api['queries'][string])?.requestId ?? ''
? (queryCache as (typeof api)['queries'][string])?.requestId ?? ''
: queryCacheKey;
if (
queryCache &&