diff --git a/constants/myPages.js b/constants/myPages.js index 4c6684f9e..ad0f66089 100644 --- a/constants/myPages.js +++ b/constants/myPages.js @@ -1,3 +1,9 @@ +// Due to these records being used in next.config.js, and that is +// required to be a js file, we use jsdoc to type these. +/** + * @typedef {import('../types/lang').Lang} Lang + */ +/** @type {Record.} */ export const pageNames = { da: "mine-sider", de: "mein-profil", diff --git a/constants/myPages.ts b/constants/myPages.ts deleted file mode 100644 index 7179ba17d..000000000 --- a/constants/myPages.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { Lang } from "@/types/lang" - -export const pageNames: Record = { - da: "mine-sider", - de: "mein-profil", - en: "my-pages", - fi: "minun-sivujani", - no: "mine-sider", - sv: "mina-sidor", -}