Skip to content

Commit c345d2c

Browse files
fix(openapi-parser): depend on @scalar/openapi-types (#6381)
E.g. validate and dereference from the parser return the OpenAPI.Document type from @scalar/openapi-types. Without the dependency if you install the parser and call one of these functions TypeScript will infer the type of their returned schema to be any.
1 parent e14aad3 commit c345d2c

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.changeset/many-phones-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@scalar/openapi-parser': patch
3+
---
4+
5+
fix: added dependency on @scalar/openapi-types

packages/openapi-parser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"module": "./dist/index.js",
6969
"sideEffects": false,
7070
"dependencies": {
71+
"@scalar/openapi-types": "workspace:*",
7172
"ajv": "^8.17.1",
7273
"ajv-draft-04": "^1.0.0",
7374
"ajv-formats": "^3.0.1",
@@ -78,7 +79,6 @@
7879
"devDependencies": {
7980
"@apidevtools/swagger-parser": "^10.1.0",
8081
"@scalar/build-tooling": "workspace:*",
81-
"@scalar/openapi-types": "workspace:*",
8282
"@scalar/types": "workspace:*",
8383
"@types/node": "catalog:*",
8484
"fastify": "catalog:*",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)