aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-01 21:12:21 +0900
committernsfisis <nsfisis@gmail.com>2024-08-01 21:12:21 +0900
commit7190fa225d1a559bacfb244fb1295e8bec246906 (patch)
tree5dfec840f71ed07c78c05b9d465b52b5afb2ff25 /frontend
parentd4b76effa883fc191b82027e7d76d1f34fcc2992 (diff)
downloadiosdc-japan-2024-albatross-7190fa225d1a559bacfb244fb1295e8bec246906.tar.gz
iosdc-japan-2024-albatross-7190fa225d1a559bacfb244fb1295e8bec246906.tar.zst
iosdc-japan-2024-albatross-7190fa225d1a559bacfb244fb1295e8bec246906.zip
refactor(frontend): disable `--path-params-as-types` of `openapi-typescript`
Diffstat (limited to 'frontend')
-rw-r--r--frontend/app/.server/api/schema.d.ts4
-rw-r--r--frontend/package.json2
2 files changed, 3 insertions, 3 deletions
diff --git a/frontend/app/.server/api/schema.d.ts b/frontend/app/.server/api/schema.d.ts
index 6198064..705380d 100644
--- a/frontend/app/.server/api/schema.d.ts
+++ b/frontend/app/.server/api/schema.d.ts
@@ -55,7 +55,7 @@ export interface paths {
patch?: never;
trace?: never;
};
- [path: `/games/${integer}`]: {
+ "/games/{game_id}": {
parameters: {
query?: never;
header?: never;
@@ -106,7 +106,7 @@ export interface paths {
patch?: never;
trace?: never;
};
- [path: `/admin/games/${integer}`]: {
+ "/admin/games/{game_id}": {
parameters: {
query?: never;
header?: never;
diff --git a/frontend/package.json b/frontend/package.json
index ff25a86..12aa6ba 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -7,7 +7,7 @@
"build": "remix vite:build",
"dev": "remix vite:dev",
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
- "openapi-typescript": "npx --no-install openapi-typescript --path-params-as-types --output ./app/.server/api/schema.d.ts ../openapi.yaml",
+ "openapi-typescript": "npx --no-install openapi-typescript --output ./app/.server/api/schema.d.ts ../openapi.yaml",
"start": "remix-serve ./build/server/index.js",
"typecheck": "tsc"
},