Default languages with env & langcodes typed (#94)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { NextApiHandler } from "next";
|
||||
import NextCors from "nextjs-cors";
|
||||
import { retrieveFromType } from "@utils/language";
|
||||
import { retrieveFromType, LangCode } from "@utils/language";
|
||||
|
||||
type Data = {
|
||||
languages: {
|
||||
code: string,
|
||||
code: LangCode,
|
||||
name: string
|
||||
}[]
|
||||
} | {
|
||||
|
||||
Reference in New Issue
Block a user