Skip to content

Commit

Permalink
AP-2181 Fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosGamero committed Feb 8, 2024
1 parent 1219ec6 commit fcdfb05
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { stringify } from 'fast-querystring'
import { type ZodSchema, type ZodError, z } from 'zod'
import type { z } from 'zod'

import { type Either, failure, success, isFailure } from './either.js'
import type {
Expand All @@ -16,9 +16,9 @@ function parseRequestBody<RequestBody>({
path,
}: {
body: RequestBody
requestBodySchema?: ZodSchema<RequestBody>
requestBodySchema?: z.ZodSchema<RequestBody>
path: string
}): Either<ZodError, RequestBody> {
}): Either<z.ZodError, RequestBody> {
if (!body) {
return success(body)
}
Expand Down Expand Up @@ -49,7 +49,7 @@ function parseQueryParams<RequestQuerySchema extends z.Schema>({
queryParams: z.input<RequestQuerySchema>
queryParamsSchema?: RequestQuerySchema
path: string
}): Either<ZodError, string> {
}): Either<z.ZodError, string> {
if (!queryParams) {
return success('')
}
Expand Down Expand Up @@ -78,9 +78,9 @@ function parseResponseBody<ResponseBody>({
path,
}: {
response: ResponseBody
responseBodySchema?: ZodSchema<ResponseBody>
responseBodySchema?: z.ZodSchema<ResponseBody>
path: string
}): Either<ZodError, ResponseBody> {
}): Either<z.ZodError, ResponseBody> {
if (!responseBodySchema) {
return success(response)
}
Expand Down

0 comments on commit fcdfb05

Please sign in to comment.