Skip to content

Commit

Permalink
tweak test
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 committed Feb 26, 2025
1 parent 0b7d07d commit eb4c633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/toolkit/src/query/tests/createApi.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ describe('type tests', () => {
}) satisfies v.GenericSchema<any, Post>,
// @ts-expect-error can't expect different input
errorSchema: v.object({
...errorSchema.entries,
status: v.pipe(v.string(), v.transform(Number)),
data: v.unknown(),
}) satisfies v.GenericSchema<any, FetchBaseQueryError>,
}),
outputMismatch: build.query<Post, { id: number }>({
Expand All @@ -434,8 +434,8 @@ describe('type tests', () => {
}) satisfies v.GenericSchema<Post, any>,
// @ts-expect-error can't provide different output
errorSchema: v.object({
...errorSchema.entries,
status: v.pipe(v.number(), v.transform(String)),
data: v.unknown(),
}) satisfies v.GenericSchema<FetchBaseQueryError, any>,
}),
}),
Expand Down

0 comments on commit eb4c633

Please sign in to comment.