Skip to content

Commit

Permalink
🏷️ Update types for available languages
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Feb 3, 2022
1 parent 6b8bf1b commit a998c84
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/@shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ type Repo = `${string}/${string}`

type Mapping = 'url' | 'title' | 'og:title' | 'specific' | 'number' | 'pathname'

type GenericString = string & Record<never, never>

type Theme =
| 'light'
| 'light_high_contrast'
Expand All @@ -34,21 +36,24 @@ type Theme =
| 'transparent_dark'
| 'preferred_color_scheme'
| `https://${string}`
| GenericString

type Lang =
| 'en'
| 'fr'
| 'de'
| 'gsw'
| 'en'
| 'es'
| 'fr'
| 'id'
| 'it'
| 'ja'
| 'ko'
| 'pl'
| 'id'
| 'ro'
| 'ru'
| 'vi'
| 'zh-CN'
| 'zh-TW'
| string
| GenericString

export type { GiscusProps, Giscus, Session, Repo, Mapping, Theme }

0 comments on commit a998c84

Please sign in to comment.