diff --git a/docs/Formatting.md b/docs/Formatting.md index 2d3f858..a68e09b 100644 --- a/docs/Formatting.md +++ b/docs/Formatting.md @@ -142,16 +142,6 @@ Returns the raw JSON value of the specified `messageId` for the current locale. ``` -If you're using TypeScript, you can define the returned type as well: - -```html - -``` - ### Formats `svelte-i18n` comes with a default set of `number`, `time` and `date` formats: diff --git a/src/runtime/stores/formatters.ts b/src/runtime/stores/formatters.ts index 2645db4..d580527 100644 --- a/src/runtime/stores/formatters.ts +++ b/src/runtime/stores/formatters.ts @@ -82,7 +82,7 @@ const formatNumber: NumberFormatter = (n, options) => { return getNumberFormatter(options).format(n); }; -const getJSON: JSONGetter = (id: string, locale = getCurrentLocale()) => { +const getJSON: JSONGetter = (id: string, locale = getCurrentLocale()) => { return lookup(id, locale) as T; };