Skip to content

Commit 0e584bd

Browse files
dvlin-devcwtuan
authored andcommitted
fix: Improve type hints
1 parent d7b26b9 commit 0e584bd

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/react-intl-universal/typings/index.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,19 @@ declare module "react-intl-universal" {
9999
id: string,
100100
defaultMessage?: string,
101101
}
102+
103+
const intl: {
104+
determineLocale: typeof determineLocale;
105+
formatHTMLMessage: typeof formatHTMLMessage;
106+
formatMessage: typeof formatMessage;
107+
get: typeof get;
108+
getHTML: typeof getHTML;
109+
getInitOptions: typeof getInitOptions;
110+
init: typeof init;
111+
load: typeof load;
112+
};
113+
114+
export default intl;
102115
}
103116

104117
declare interface String {

0 commit comments

Comments
 (0)