Skip to content

Commit

Permalink
Remove internal type imports in TS test files
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Oct 31, 2023
1 parent d7b33b5 commit 2614993
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions typescript_test/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable no-use-before-define */

import type { AnyFunction, ExtractMemoizerFields } from '../src/types'
import { configureStore, createSlice } from '@reduxjs/toolkit'
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
import { groupBy, isEqual } from 'lodash'
Expand Down Expand Up @@ -960,7 +959,7 @@ function testStructuredSelectorTypeParams() {
// })
}

function multiArgMemoize<F extends AnyFunction>(
function multiArgMemoize<F extends (...args: any[]) => any>(
func: F,
a: number,
b: string,
Expand Down Expand Up @@ -1757,18 +1756,6 @@ function testCreateStructuredSelectorNew() {
multiArgsStructuredSelector(state, 2, true).selectedCompletedTodos
expectExactType<typeof microMemoize>(multiArgsStructuredSelector.argsMemoize)
expectExactType<typeof microMemoize>(multiArgsStructuredSelector.memoize)
expectExactType<ExtractMemoizerFields<typeof microMemoize>['cache']>(
multiArgsStructuredSelector.cache
)
expectExactType<ExtractMemoizerFields<typeof microMemoize>['fn']>(
multiArgsStructuredSelector.fn
)
expectExactType<ExtractMemoizerFields<typeof microMemoize>['isMemoized']>(
multiArgsStructuredSelector.isMemoized
)
expectExactType<ExtractMemoizerFields<typeof microMemoize>['options']>(
multiArgsStructuredSelector.options
)
expectExactType<
[
(state: State) => State['todos'],
Expand Down

0 comments on commit 2614993

Please sign in to comment.