Skip to content

Commit

Permalink
fix return type of generateOpenApiSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
omermecitoglu committed Jul 5, 2024
1 parent a390719 commit d7d8857
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@omer-x/next-openapi-json-generator",
"version": "0.3.0",
"version": "0.3.1",
"description": "a Next.js plugin to generate OpenAPI documentation from route handlers",
"keywords": [
"next.js",
Expand Down Expand Up @@ -47,7 +47,7 @@
},
"devDependencies": {
"@omer-x/eslint-config": "^1.0.7",
"@omer-x/openapi-types": "^0.1.2",
"@omer-x/openapi-types": "^0.1.3",
"@types/node": "^20.14.9",
"clean-webpack-plugin": "^4.0.0",
"eslint": "^8.57.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ export default async function generateOpenApiSpec(schemas: Record<string, ZodTyp
schemas: bundleSchemas(schemas),
},
tags: [],
} as OpenApiDocument;
} as Omit<OpenApiDocument, "components"> & Required<Pick<OpenApiDocument, "components">>;
}

0 comments on commit d7d8857

Please sign in to comment.