Skip to content

Commit

Permalink
Remove '@internal' imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Nov 30, 2023
1 parent 2c389cf commit 0293ebb
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/devModeChecks/identityFunctionCheck.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AnyFunction } from '@internal/types'
import type { AnyFunction } from '../types'

/**
* Runs a check to determine if the given result function behaves as an
Expand Down
2 changes: 1 addition & 1 deletion src/devModeChecks/inputStabilityCheck.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CreateSelectorOptions, UnknownMemoizer } from '@internal/types'
import type { CreateSelectorOptions, UnknownMemoizer } from '../types'

/**
* Runs a stability check to ensure the input selector results remain stable
Expand Down
3 changes: 2 additions & 1 deletion src/devModeChecks/setGlobalDevModeChecks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { DevModeChecks } from '@internal/types'
import type { DevModeChecks } from '../types'

/**
* Global configuration for development mode checks. This specifies the default
Expand Down Expand Up @@ -30,6 +30,7 @@ export const globalDevModeChecks: DevModeChecks = {
* @example
* ```ts
* import { setGlobalDevModeChecks } from 'reselect'
import { DevModeChecks } from '../types';
*
* // Run only the first time the selector is called. (default)
* setGlobalDevModeChecks({ inputStabilityCheck: 'once' })
Expand Down
2 changes: 1 addition & 1 deletion src/versionedTypes/ts47-mergeParameters.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This entire implementation courtesy of Anders Hjelsberg:
// https://github.com/microsoft/TypeScript/pull/50831#issuecomment-1253830522

import type { AnyFunction } from '@internal/types'
import type { AnyFunction } from '../types'

/**
* Represents the longest array within an array of arrays.
Expand Down
3 changes: 1 addition & 2 deletions test/identityFunctionCheck.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createSelector } from 'reselect'
import { setGlobalDevModeChecks } from '../src/devModeChecks/setGlobalDevModeChecks'
import { createSelector, setGlobalDevModeChecks } from 'reselect'
import type { LocalTestContext, RootState } from './testUtils'
import { localTest } from './testUtils'

Expand Down
3 changes: 1 addition & 2 deletions test/inputStabilityCheck.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { shallowEqual } from 'react-redux'
import { createSelector } from 'reselect'
import { setGlobalDevModeChecks } from '../src/devModeChecks/setGlobalDevModeChecks'
import { createSelector, setGlobalDevModeChecks } from 'reselect'

describe('inputStabilityCheck', () => {
const consoleSpy = vi.spyOn(console, 'warn').mockImplementation(() => {})
Expand Down

0 comments on commit 0293ebb

Please sign in to comment.