Skip to content

Commit 56fe7f2

Browse files
committed
Strings as constants
1 parent accacb9 commit 56fe7f2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/app.routes.constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
// while app.routes.ts includes the component file. This putting them here in
88
// a separate file.
99

10-
export const paramMapNameYear: string = "year";
11-
export const paramMapNameFylke: string = "fylke";
12-
export const paramMapNameKommune: string = "kommune";
10+
export const paramMapNameYear = "year" as const;
11+
export const paramMapNameFylke = "fylke" as const;
12+
export const paramMapNameKommune = "kommune" as const;

0 commit comments

Comments
 (0)