Skip to content

Commit

Permalink
fix: Fix incorrect generics type specification
Browse files Browse the repository at this point in the history
  • Loading branch information
Karibash committed Nov 17, 2023
1 parent 904fb48 commit 3915c72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/zod-openapi/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export class OpenAPIHono<
doc = <P extends string>(
path: P,
config: OpenAPIObjectConfig
): OpenAPIHono<E, S & ToSchema<'get', P, {}, OpenAPIObject>, BasePath> => {
): OpenAPIHono<E, S & ToSchema<'get', P, {}, {}>, BasePath> => {
return this.get(path, (c) => {
const document = this.getOpenAPIDocument(config)
return c.json(document)
Expand All @@ -291,7 +291,7 @@ export class OpenAPIHono<
doc31 = <P extends string>(
path: P,
config: OpenAPIObjectConfig
): OpenAPIHono<E, S & ToSchema<'get', P, {}, OpenAPIObject>, BasePath> => {
): OpenAPIHono<E, S & ToSchema<'get', P, {}, {}>, BasePath> => {
return this.get(path, (c) => {
const document = this.getOpenAPI31Document(config)
return c.json(document)
Expand Down

0 comments on commit 3915c72

Please sign in to comment.