Skip to content

Commit

Permalink
fix: export correct configuration type
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisermann committed Sep 20, 2020
1 parent 37117c5 commit 68e8c51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
14 changes: 3 additions & 11 deletions src/runtime/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,9 @@ import { ConfigureOptions } from './types'
import { $locale } from './stores/locale'

interface Formats {
number: Record<string, any>
date: Record<string, any>
time: Record<string, any>
}

interface Options {
fallbackLocale: string
initialLocale: string
formats: Formats
loadingDelay: number
warnOnMissingMessages: boolean
number: Record<string, any>;
date: Record<string, any>;
time: Record<string, any>;
}

export const defaultFormats: Formats = {
Expand Down
9 changes: 5 additions & 4 deletions src/runtime/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ export interface MessagesLoader {
}

export interface ConfigureOptions {
fallbackLocale: string
initialLocale?: string
formats?: Partial<Formats>
loadingDelay?: number
fallbackLocale: string;
formats?: Partial<Formats>;
initialLocale?: string;
loadingDelay?: number;
warnOnMissingMessages?: boolean;
}

0 comments on commit 68e8c51

Please sign in to comment.