fix: jsdoc types for constants
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
Reference in New Issue
Block a user