Skip to content

Commit

Permalink
Remove unused @ts-expect-error directives
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Jan 25, 2024
1 parent 65dd3a3 commit 1ae8a62
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/toolkit/src/query/tests/unionTypes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,13 @@ describe.skip('TS only tests', () => {
}

expectExactType('' as string | undefined)(result.currentData)
// @ts-expect-error
expectExactType('' as string)(result.currentData)

if (result.isSuccess) {
if (!result.isFetching) {
expectExactType('' as string)(result.currentData)
} else {
expectExactType('' as string | undefined)(result.currentData)
// @ts-expect-error
expectExactType('' as string)(result.currentData)
}
}
Expand Down Expand Up @@ -359,7 +357,6 @@ describe.skip('TS only tests', () => {
const { refetch, ...useQueryResultWithoutMethods } = useQueryResult
expectExactType(useQueryStateResult)(useQueryResultWithoutMethods)
expectExactType(useQueryStateWithSelectFromResult)(
// @ts-expect-error
useQueryResultWithoutMethods
)
expectType<ReturnType<ReturnType<typeof api.endpoints.test.select>>>(
Expand Down

0 comments on commit 1ae8a62

Please sign in to comment.