fix: export correct configuration type

This commit is contained in:
Christian Kaisermann 2020-09-20 10:12:18 -03:00
parent 37117c57cc
commit 68e8c51a63
2 changed files with 8 additions and 15 deletions

View File

@ -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 = {

View File

@ -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;
}