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' import { $locale } from './stores/locale'
interface Formats { interface Formats {
number: Record<string, any> number: Record<string, any>;
date: Record<string, any> date: Record<string, any>;
time: Record<string, any> time: Record<string, any>;
}
interface Options {
fallbackLocale: string
initialLocale: string
formats: Formats
loadingDelay: number
warnOnMissingMessages: boolean
} }
export const defaultFormats: Formats = { export const defaultFormats: Formats = {

View File

@ -48,8 +48,9 @@ export interface MessagesLoader {
} }
export interface ConfigureOptions { export interface ConfigureOptions {
fallbackLocale: string fallbackLocale: string;
initialLocale?: string formats?: Partial<Formats>;
formats?: Partial<Formats> initialLocale?: string;
loadingDelay?: number loadingDelay?: number;
warnOnMissingMessages?: boolean;
} }