Skip to content

Commit 1ae8a62

Browse files
committed
Remove unused @ts-expect-error directives
1 parent 65dd3a3 commit 1ae8a62

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/toolkit/src/query/tests/unionTypes.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,13 @@ describe.skip('TS only tests', () => {
123123
}
124124

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

129128
if (result.isSuccess) {
130129
if (!result.isFetching) {
131130
expectExactType('' as string)(result.currentData)
132131
} else {
133132
expectExactType('' as string | undefined)(result.currentData)
134-
// @ts-expect-error
135133
expectExactType('' as string)(result.currentData)
136134
}
137135
}
@@ -359,7 +357,6 @@ describe.skip('TS only tests', () => {
359357
const { refetch, ...useQueryResultWithoutMethods } = useQueryResult
360358
expectExactType(useQueryStateResult)(useQueryResultWithoutMethods)
361359
expectExactType(useQueryStateWithSelectFromResult)(
362-
// @ts-expect-error
363360
useQueryResultWithoutMethods
364361
)
365362
expectType<ReturnType<ReturnType<typeof api.endpoints.test.select>>>(

0 commit comments

Comments
 (0)