fix: jsdoc types for constants

This commit is contained in:
Christel Westerberg
2024-04-08 09:43:51 +02:00
parent a8572fdbc9
commit f3c9386ef4
2 changed files with 6 additions and 10 deletions

View File

@@ -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.<Lang, string>} */
export const pageNames = {
da: "mine-sider",
de: "mein-profil",

View File

@@ -1,10 +0,0 @@
import type { Lang } from "@/types/lang"
export const pageNames: Record<Lang, string> = {
da: "mine-sider",
de: "mein-profil",
en: "my-pages",
fi: "minun-sivujani",
no: "mine-sider",
sv: "mina-sidor",
}