Skip to content

Commit 0bec494

Browse files
committed
Update deps
1 parent a8c3206 commit 0bec494

File tree

11 files changed

+127
-120
lines changed

11 files changed

+127
-120
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
33
"root": true,
44
"files": {
55
"includes": ["**", "!**/dist", "!**/package.json"]

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
},
2121
"devDependencies": {
2222
"@arethetypeswrong/cli": "0.18.2",
23-
"@biomejs/biome": "2.2.6",
23+
"@biomejs/biome": "2.3.14",
2424
"@changesets/changelog-github": "0.5.2",
2525
"@changesets/cli": "2.29.8",
2626
"@playwright/test": "1.56.0",
27-
"@size-limit/preset-small-lib": "11.2.0",
27+
"@size-limit/preset-small-lib": "12.0.0",
2828
"@types/node": "25.2.2",
29-
"prettier": "3.6.2",
30-
"size-limit": "11.2.0",
31-
"turbo": "2.5.8",
29+
"prettier": "3.8.1",
30+
"size-limit": "12.0.0",
31+
"turbo": "2.8.3",
3232
"typescript": "catalog:",
3333
"unbuild": "3.6.1",
3434
"vitest": "4.0.18"

packages/openapi-fetch/biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"root": false,
3-
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
3+
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
44
"extends": "//",
55
"files": {
66
"includes": ["src/**", "test/**", "!**/examples/**", "!test/**/schemas/**", "!test/bench/**/*.min.js"]

packages/openapi-react-query/biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"root": false,
3-
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
3+
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
44
"extends": "//",
55
"files": {
66
"includes": ["**", "!dist/**", "!test/fixtures/**"]

packages/openapi-typescript-helpers/biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"root": false,
3-
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
3+
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
44
"extends": "//",
55
"files": {
66
"includes": ["**/*"]

packages/openapi-typescript-helpers/src/index.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,16 @@ type PickRequestBody<T> = "requestBody" extends keyof T ? Pick<T, "requestBody">
107107
export type IsOperationRequestBodyOptional<T> = RequiredKeysOf<PickRequestBody<T>> extends never ? true : false;
108108

109109
/** Internal helper used in OperationRequestBodyContent */
110-
export type OperationRequestBodyMediaContent<T> = IsOperationRequestBodyOptional<T> extends true
111-
? ResponseContent<NonNullable<OperationRequestBody<T>>> | undefined
112-
: ResponseContent<OperationRequestBody<T>>;
110+
export type OperationRequestBodyMediaContent<T> =
111+
IsOperationRequestBodyOptional<T> extends true
112+
? ResponseContent<NonNullable<OperationRequestBody<T>>> | undefined
113+
: ResponseContent<OperationRequestBody<T>>;
113114

114115
/** Return first `content` from a Request Object Mapping, allowing any media type */
115-
export type OperationRequestBodyContent<T> = FilterKeys<OperationRequestBodyMediaContent<T>, MediaType> extends never
116-
? FilterKeys<NonNullable<OperationRequestBodyMediaContent<T>>, MediaType> | undefined
117-
: FilterKeys<OperationRequestBodyMediaContent<T>, MediaType>;
116+
export type OperationRequestBodyContent<T> =
117+
FilterKeys<OperationRequestBodyMediaContent<T>, MediaType> extends never
118+
? FilterKeys<NonNullable<OperationRequestBodyMediaContent<T>>, MediaType> | undefined
119+
: FilterKeys<OperationRequestBodyMediaContent<T>, MediaType>;
118120

119121
/** Return all 2XX responses from a Response Object Map */
120122
export type SuccessResponse<

packages/openapi-typescript/biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"root": false,
3-
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
3+
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
44
"extends": "//",
55
"files": {
66
"includes": ["bin/**", "!examples/**", "src/**", "test/**", "!**/fixtures/**/*"]

packages/openapi-typescript/src/lib/redoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export async function parseSchema(schema: unknown, { absoluteRef, resolver }: Pa
8484

8585
function _processProblems(problems: NormalizedProblem[], options: { silent: boolean }) {
8686
if (problems.length) {
87-
let errorMessage: string | undefined = undefined;
87+
let errorMessage: string | undefined;
8888
for (const problem of problems) {
8989
const problemLocation = problem.location?.[0].pointer;
9090
const problemMessage = problemLocation ? `${problem.message} at ${problemLocation}` : problem.message;

packages/openapi-typescript/src/transform/parameters-array.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function transformParametersArray(
8686
if (resolved?.in !== paramIn) {
8787
continue;
8888
}
89-
let optional: ts.QuestionToken | undefined = undefined;
89+
let optional: ts.QuestionToken | undefined;
9090
if (paramIn !== "path" && !(resolved as ParameterObject).required) {
9191
optional = QUESTION_TOKEN;
9292
}

packages/openapi-typescript/src/transform/schema-object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export function transformSchemaObjectWithComposition(
270270
}
271271

272272
// compile final type
273-
let finalType: ts.TypeNode | undefined = undefined;
273+
let finalType: ts.TypeNode | undefined;
274274

275275
// core + allOf: intersect
276276
const coreObjectType = transformSchemaObjectCore(schemaObject, options);

0 commit comments

Comments
 (0)