Skip to content

Commit

Permalink
Update TS to fix TS build error in useRoutes
Browse files Browse the repository at this point in the history
  • Loading branch information
anagperal committed Aug 5, 2024
1 parent 878603a commit d23914d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"ts-node": "^10.9.1",
"ts-prune": "^0.10.3",
"typedoc": "^0.25.1",
"typescript": "5.2.2",
"typescript": "5.3.2",
"vite": "^4.2.0",
"vite-bundle-visualizer": "^0.6.0",
"vite-plugin-checker": "^0.6.2",
Expand Down
2 changes: 1 addition & 1 deletion src/webapp/hooks/useRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export enum RouteName {
DASHBOARD = "DASHBOARD",
}

const formTypes: FormType[] = ["disease-outbreak-event"];
const formTypes = ["disease-outbreak-event"] as const satisfies FormType[];

const formType = `:formType(${join(formTypes, "|")})` as const;

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11108,10 +11108,10 @@ typedoc@^0.25.1:
minimatch "^9.0.3"
shiki "^0.14.1"

typescript@5.2.2:
version "5.2.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78"
integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==
typescript@5.3.2:
version "5.3.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43"
integrity sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==

ua-parser-js@^0.7.30:
version "0.7.36"
Expand Down

0 comments on commit d23914d

Please sign in to comment.