1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-06-13 16:19:18 +00:00

Update util.ts

This commit is contained in:
2021-12-30 23:46:27 +00:00
committed by GitHub
parent 1d8077d8b4
commit df5bb1aae3

View File

@ -1,6 +1,5 @@
import { SupportedLanguages } from '@tcgdex/sdk'
import { Response } from 'express'
import fs from 'fs'
export function checkLanguage(str: string): str is SupportedLanguages {
return ['en', 'fr', 'es', 'it', 'pt', 'de'].includes(str)