mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 18:10:43 +01:00
fix: export correct configuration type
This commit is contained in:
parent
37117c57cc
commit
68e8c51a63
@ -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 = {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user