Skip to content

Commit 61b2fff

Browse files
committed
Remove @internal imports in source files
- Remove `@internal` imports in source files as they cause the `website` build to fail.
1 parent a2ddfcb commit 61b2fff

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

packages/toolkit/src/entities/state_selectors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type { AnyFunction } from '@internal/tsHelpers'
21
import type {
32
CreateSelectorFunction,
43
Selector,
54
UnknownMemoizer,
65
} from 'reselect'
76
import { createDraftSafeSelector } from '../createDraftSafeSelector'
7+
import type { AnyFunction } from '../tsHelpers'
88
import type { EntityId, EntitySelectors, EntityState } from './models'
99

1010
type AnyCreateSelectorFunction = CreateSelectorFunction<

packages/toolkit/src/query/core/buildMiddleware/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type { AnyNonNullishValue } from '@internal/tsHelpers'
21
import type {
32
Action,
43
Middleware,
54
ThunkDispatch,
65
UnknownAction,
76
} from '@reduxjs/toolkit'
7+
import type { AnyNonNullishValue } from '../../../tsHelpers'
88
import type {
99
EndpointDefinitions,
1010
FullTagDescription,

packages/toolkit/src/query/core/buildMiddleware/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { AnyNonNullishValue, EmptyObject } from '@internal/tsHelpers'
21
import type {
32
Action,
43
AsyncThunkAction,
@@ -7,6 +6,7 @@ import type {
76
ThunkDispatch,
87
UnknownAction,
98
} from '@reduxjs/toolkit'
9+
import type { AnyNonNullishValue, EmptyObject } from '../../../tsHelpers'
1010
import type { Api, ApiContext } from '../../apiTypes'
1111
import type {
1212
AssertTagTypes,

packages/toolkit/src/query/core/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/**
22
* Note: this file should import all other files for type discovery and declaration merging
33
*/
4-
import type { AnyNonNullishValue, AnyObject } from '@internal/tsHelpers'
54
import type {
65
ActionCreatorWithPayload,
76
Middleware,
@@ -11,6 +10,7 @@ import type {
1110
UnknownAction,
1211
} from '@reduxjs/toolkit'
1312
import { enablePatches } from 'immer'
13+
import type { AnyNonNullishValue, AnyObject } from '../../tsHelpers'
1414
import type { Api, Module } from '../apiTypes'
1515
import type { BaseQueryFn } from '../baseQueryTypes'
1616
import type { InternalSerializeQueryArgs } from '../defaultSerializeQueryArgs'

packages/toolkit/src/query/endpointDefinitions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { AnyFunction, AnyNonNullishValue } from '@internal/tsHelpers'
21
import type { Api } from '@reduxjs/toolkit/query'
2+
import type { AnyFunction, EmptyObject } from '../tsHelpers'
33
import type {
44
BaseQueryApi,
55
BaseQueryArg,
@@ -194,7 +194,7 @@ export type BaseEndpointDefinition<
194194
BaseQuery extends BaseQueryFn,
195195
ResultType,
196196
> = (
197-
| ([CastAny<BaseQueryResult<BaseQuery>, AnyNonNullishValue>] extends [NEVER]
197+
| ([CastAny<BaseQueryResult<BaseQuery>, EmptyObject>] extends [NEVER]
198198
? never
199199
: EndpointDefinitionWithQuery<QueryArg, BaseQuery, ResultType>)
200200
| EndpointDefinitionWithQueryFn<QueryArg, BaseQuery, ResultType>

packages/toolkit/src/query/react/buildHooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ import {
4343
useState,
4444
} from 'react'
4545
import { shallowEqual } from 'react-redux'
46+
import type { AnyObject } from '../../tsHelpers'
4647
import type { SubscriptionSelectors } from '../core'
4748
import { defaultSerializeQueryArgs } from '../defaultSerializeQueryArgs'
4849
import type { UninitializedValue } from './constants'
4950
import { UNINITIALIZED_VALUE } from './constants'
5051
import type { ReactHooksModuleOptions } from './module'
5152
import { useStableQueryArgs } from './useSerializedStableValue'
5253
import { useShallowStableValue } from './useShallowStableValue'
53-
import type { AnyObject } from '@internal/tsHelpers'
5454

5555
// Copy-pasted from React-Redux
5656
const canUseDOM = () =>

0 commit comments

Comments
 (0)