Skip to content

Commit

Permalink
use directions type instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
iifawzi committed Jan 15, 2021
1 parent 7c7ac51 commit 958d4ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/nuxt-i18n.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Context as NuxtContext } from '@nuxt/types'
declare namespace NuxtVueI18n {
type Locale = VueI18n.Locale
type Strategies = 'no_prefix' | 'prefix_except_default' | 'prefix' | 'prefix_and_default'
type Directions = 'ltr' | 'rtl' | 'auto'

namespace Options {
// e.g.:
Expand All @@ -22,7 +23,7 @@ declare namespace NuxtVueI18n {
iso?: string
// can be undefined: https://goo.gl/ryc5pF
file?: string
dir?: string
dir?: Directions
isCatchallLocale?: boolean
// Allow custom properties, e.g. "name": https://goo.gl/wrcb2G
[key: string]: any
Expand Down

0 comments on commit 958d4ae

Please sign in to comment.