File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- import type { AnyFunction } from '@internal/tsHelpers'
2
1
import type {
3
2
CreateSelectorFunction ,
4
3
Selector ,
5
4
UnknownMemoizer ,
6
5
} from 'reselect'
7
6
import { createDraftSafeSelector } from '../createDraftSafeSelector'
7
+ import type { AnyFunction } from '../tsHelpers'
8
8
import type { EntityId , EntitySelectors , EntityState } from './models'
9
9
10
10
type AnyCreateSelectorFunction = CreateSelectorFunction <
Original file line number Diff line number Diff line change 1
- import type { AnyNonNullishValue } from '@internal/tsHelpers'
2
1
import type {
3
2
Action ,
4
3
Middleware ,
5
4
ThunkDispatch ,
6
5
UnknownAction ,
7
6
} from '@reduxjs/toolkit'
7
+ import type { AnyNonNullishValue } from '../../../tsHelpers'
8
8
import type {
9
9
EndpointDefinitions ,
10
10
FullTagDescription ,
Original file line number Diff line number Diff line change 1
- import type { AnyNonNullishValue , EmptyObject } from '@internal/tsHelpers'
2
1
import type {
3
2
Action ,
4
3
AsyncThunkAction ,
@@ -7,6 +6,7 @@ import type {
7
6
ThunkDispatch ,
8
7
UnknownAction ,
9
8
} from '@reduxjs/toolkit'
9
+ import type { AnyNonNullishValue , EmptyObject } from '../../../tsHelpers'
10
10
import type { Api , ApiContext } from '../../apiTypes'
11
11
import type {
12
12
AssertTagTypes ,
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Note: this file should import all other files for type discovery and declaration merging
3
3
*/
4
- import type { AnyNonNullishValue , AnyObject } from '@internal/tsHelpers'
5
4
import type {
6
5
ActionCreatorWithPayload ,
7
6
Middleware ,
@@ -11,6 +10,7 @@ import type {
11
10
UnknownAction ,
12
11
} from '@reduxjs/toolkit'
13
12
import { enablePatches } from 'immer'
13
+ import type { AnyNonNullishValue , AnyObject } from '../../tsHelpers'
14
14
import type { Api , Module } from '../apiTypes'
15
15
import type { BaseQueryFn } from '../baseQueryTypes'
16
16
import type { InternalSerializeQueryArgs } from '../defaultSerializeQueryArgs'
Original file line number Diff line number Diff line change 1
- import type { AnyFunction , AnyNonNullishValue } from '@internal/tsHelpers'
2
1
import type { Api } from '@reduxjs/toolkit/query'
2
+ import type { AnyFunction , EmptyObject } from '../tsHelpers'
3
3
import type {
4
4
BaseQueryApi ,
5
5
BaseQueryArg ,
@@ -194,7 +194,7 @@ export type BaseEndpointDefinition<
194
194
BaseQuery extends BaseQueryFn ,
195
195
ResultType ,
196
196
> = (
197
- | ( [ CastAny < BaseQueryResult < BaseQuery > , AnyNonNullishValue > ] extends [ NEVER ]
197
+ | ( [ CastAny < BaseQueryResult < BaseQuery > , EmptyObject > ] extends [ NEVER ]
198
198
? never
199
199
: EndpointDefinitionWithQuery < QueryArg , BaseQuery , ResultType > )
200
200
| EndpointDefinitionWithQueryFn < QueryArg , BaseQuery , ResultType >
Original file line number Diff line number Diff line change @@ -43,14 +43,14 @@ import {
43
43
useState ,
44
44
} from 'react'
45
45
import { shallowEqual } from 'react-redux'
46
+ import type { AnyObject } from '../../tsHelpers'
46
47
import type { SubscriptionSelectors } from '../core'
47
48
import { defaultSerializeQueryArgs } from '../defaultSerializeQueryArgs'
48
49
import type { UninitializedValue } from './constants'
49
50
import { UNINITIALIZED_VALUE } from './constants'
50
51
import type { ReactHooksModuleOptions } from './module'
51
52
import { useStableQueryArgs } from './useSerializedStableValue'
52
53
import { useShallowStableValue } from './useShallowStableValue'
53
- import type { AnyObject } from '@internal/tsHelpers'
54
54
55
55
// Copy-pasted from React-Redux
56
56
const canUseDOM = ( ) =>
You can’t perform that action at this time.
0 commit comments