Skip to content

Commit

Permalink
fix: Improve type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlin-dev authored and cwtuan committed Sep 26, 2023
1 parent d7b26b9 commit 0e584bd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/react-intl-universal/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0e584bd

Please sign in to comment.