@comparaonline/react-intl-hooks
Advanced tools
Comparing version 0.0.1-alpha.5 to 0.0.1-alpha.6
@@ -1,3 +0,5 @@ | ||
export declare const useFormatMessage: () => (id: string, values?: { | ||
[key: string]: any; | ||
} | undefined) => any; | ||
import { FormattedMessage, MessageValue } from 'react-intl'; | ||
export declare type FormatMessage = (id: FormattedMessage.MessageDescriptor['id'], values?: { | ||
[key: string]: MessageValue; | ||
}) => string; | ||
export declare const useFormatMessage: () => FormatMessage; |
export { IntlContext } from './IntlContext'; | ||
export { InjectIntlContext } from './InjectIntlContext'; | ||
export { useFormatMessage } from './hooks'; | ||
export { useFormatMessage, FormatMessage } from './hooks'; |
@@ -1,1 +0,5 @@ | ||
export declare const InjectIntlContext: any; | ||
/// <reference types="react-intl" /> | ||
import React from 'react'; | ||
export declare const InjectIntlContext: React.ComponentClass<Pick<{}, never>, any> & { | ||
WrappedComponent: React.ComponentType<ReactIntl.InjectedIntlProps>; | ||
}; |
import React from 'react'; | ||
export declare const IntlContext: React.Context<any>; | ||
import { InjectedIntl } from 'react-intl'; | ||
export declare const IntlContext: React.Context<InjectedIntl>; |
{ | ||
"name": "@comparaonline/react-intl-hooks", | ||
"author": "ComparaOnline.com", | ||
"version": "0.0.1-alpha.5", | ||
"version": "0.0.1-alpha.6", | ||
"main": "dist/react-intl-hooks.js", | ||
@@ -24,3 +24,3 @@ "types": "dist/index.d.ts", | ||
"@types/enzyme": "^3.1.14", | ||
"@types/jest": "^23.3.5", | ||
"@types/jest": "^23.3.5", | ||
"enzyme": "^3.7.0", | ||
@@ -30,2 +30,3 @@ "jest": "^23.6.0", | ||
"react-dom": "^16.0.0", | ||
"react-intl": "^2.8.0", | ||
"tslint": "^5.11.0", | ||
@@ -38,2 +39,3 @@ "typescript": "^3.2.0", | ||
"@types/react": "^16.0.0", | ||
"@types/react-intl": "^2.3.17", | ||
"prop-types": "^15.7.2", | ||
@@ -40,0 +42,0 @@ "tslib": "^1.9.0" |
@@ -28,3 +28,3 @@ # @comparaonline/react-intl-hooks | ||
```tsx | ||
import { useFormatMessage } from '@comparaonline/react-intl-hooks'; | ||
import { useFormatMessage, InjectIntlContext } from '@comparaonline/react-intl-hooks'; | ||
@@ -31,0 +31,0 @@ const TestIntl = () => { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12856
24
7
15
+ Added@types/react-intl@^2.3.17
+ Added@types/react-intl@2.3.18(transitive)