From 0e584bd9755fd763ca5be6da23ca9d662a30f783 Mon Sep 17 00:00:00 2001 From: Fielding <59828992+bowling00@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:33:52 +0800 Subject: [PATCH] fix: Improve type hints --- packages/react-intl-universal/typings/index.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/react-intl-universal/typings/index.d.ts b/packages/react-intl-universal/typings/index.d.ts index 1885a2f..a9ac081 100644 --- a/packages/react-intl-universal/typings/index.d.ts +++ b/packages/react-intl-universal/typings/index.d.ts @@ -99,6 +99,19 @@ declare module "react-intl-universal" { id: string, defaultMessage?: string, } + + const intl: { + determineLocale: typeof determineLocale; + formatHTMLMessage: typeof formatHTMLMessage; + formatMessage: typeof formatMessage; + get: typeof get; + getHTML: typeof getHTML; + getInitOptions: typeof getInitOptions; + init: typeof init; + load: typeof load; + }; + + export default intl; } declare interface String {