Skip to content

Commit f780f5e

Browse files
chore(deps): update dependency typescript to v5.4.2 (#1238)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <[email protected]>
1 parent 2c20a72 commit f780f5e

File tree

12 files changed

+21
-24
lines changed

12 files changed

+21
-24
lines changed

.changeset/fuzzy-timers-sin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"fets": patch
3+
---
4+
5+
Support the latest TS version

e2e/aws-lambda/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"esbuild": "0.20.1",
2020
"ts-node": "10.9.2",
2121
"tsconfig-paths": "4.2.0",
22-
"typescript": "5.3.3"
22+
"typescript": "5.4.2"
2323
}
2424
}

e2e/azure-function/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"esbuild": "0.20.1",
1717
"ts-node": "10.9.2",
1818
"tsconfig-paths": "4.2.0",
19-
"typescript": "5.3.3"
19+
"typescript": "5.4.2"
2020
}
2121
}

e2e/bun/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"bun-types": "^1.0.17"
1212
},
1313
"devDependencies": {
14-
"typescript": "5.3.3"
14+
"typescript": "5.4.2"
1515
}
1616
}

e2e/cloudflare-modules/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@pulumi/pulumi": "3.109.0",
1616
"ts-node": "10.9.2",
1717
"tsconfig-paths": "4.2.0",
18-
"typescript": "5.3.3",
18+
"typescript": "5.4.2",
1919
"wrangler": "3.33.0"
2020
}
2121
}

e2e/cloudflare-workers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@pulumi/pulumi": "3.109.0",
1616
"ts-node": "10.9.2",
1717
"tsconfig-paths": "4.2.0",
18-
"typescript": "5.3.3",
18+
"typescript": "5.4.2",
1919
"wrangler": "3.33.0"
2020
}
2121
}

e2e/vercel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"eslint-config-next": "14.1.3",
2727
"ts-node": "10.9.2",
2828
"tsconfig-paths": "4.2.0",
29-
"typescript": "5.3.3"
29+
"typescript": "5.4.2"
3030
}
3131
}

examples/nextjs-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"next": "14.1.3",
1717
"react": "18.2.0",
1818
"react-dom": "18.2.0",
19-
"typescript": "5.3.3"
19+
"typescript": "5.4.2"
2020
}
2121
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"prettier": "3.2.5",
6161
"prettier-plugin-tailwindcss": "^0.5.0",
6262
"ts-jest": "29.1.2",
63-
"typescript": "5.3.3"
63+
"typescript": "5.4.2"
6464
},
6565
"resolutions": {
6666
"@pulumi/pulumi": "3.109.0",

packages/fets/src/client/types.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,7 @@ export type OASJSONResponseSchema<
8888
>]['schema']
8989
: OASStatusMap<TOAS, TPath, TMethod>[TStatus]['schema'];
9090

91-
type ToNumber<T extends string | number, R extends any[] = []> = T extends number
92-
? T
93-
: T extends `${number}`
94-
? T extends `${R['length']}`
95-
? R['length']
96-
: ToNumber<T, [1, ...R]>
97-
: never;
91+
type ToNumber<T> = T extends `${infer N extends number}` ? N : never;
9892

9993
export type OASResponse<
10094
TOAS extends OpenAPIDocument,
@@ -116,10 +110,8 @@ export type OASResponse<
116110
OkStatusCode,
117111
ToNumber<Exclude<keyof OASStatusMap<TOAS, TPath, TMethod>, symbol>>
118112
>
119-
: TStatus extends `${number}${number}${number}`
120-
? ToNumber<TStatus> extends StatusCode
121-
? ToNumber<TStatus>
122-
: 200
113+
: TStatus extends `${StatusCode}`
114+
? ToNumber<TStatus>
123115
: 200
124116
>;
125117
}[keyof OASStatusMap<TOAS, TPath, TMethod>];

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"@typescript/sandbox": "^0.1.0",
2727
"monaco-editor": "0.47.0",
2828
"tailwindcss": "3.4.1",
29-
"typescript": "5.3.3"
29+
"typescript": "5.4.2"
3030
}
3131
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14490,10 +14490,10 @@ types-ramda@^0.29.9:
1449014490
dependencies:
1449114491
ts-toolbelt "^9.6.0"
1449214492

14493-
typescript@5.3.3, typescript@^5.0.0:
14494-
version "5.3.3"
14495-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37"
14496-
integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==
14493+
typescript@5.4.2, typescript@^5.0.0:
14494+
version "5.4.2"
14495+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.2.tgz#0ae9cebcfae970718474fe0da2c090cad6577372"
14496+
integrity sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==
1449714497

1449814498
typescript@~3.8.3:
1449914499
version "3.8.3"

0 commit comments

Comments
 (0)