From 7cecac8c670bc54b34e23677428e7b8cc1c43968 Mon Sep 17 00:00:00 2001 From: Thomas Johansson Date: Mon, 18 Jan 2016 17:03:02 -0800 Subject: [PATCH] Change the input type of defineMessages to T This allows for full intellisense on the return value, so `messages.foo` will work. --- react-intl/react-intl.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react-intl/react-intl.d.ts b/react-intl/react-intl.d.ts index b216a7dc8c..8a11401afe 100644 --- a/react-intl/react-intl.d.ts +++ b/react-intl/react-intl.d.ts @@ -24,7 +24,7 @@ declare module ReactIntl { [key: string]: FormattedMessage.MessageDescriptor } - function defineMessages(messages: Messages): T; + function defineMessages(messages: T): T; interface IntlShape extends React.Requireable { } @@ -236,4 +236,4 @@ declare module "react-intl" { declare module "react-intl/lib/locale-data/en" { var data: ReactIntl.LocaleData; export = data; -} \ No newline at end of file +}