Skip to content

Commit

Permalink
fix: omit i18n prop in withI18n typescript interface (#879)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikhail Karachev <[email protected]>
  • Loading branch information
mkarachev and Mikhail Karachev authored Nov 22, 2020
1 parent 3db9d6b commit 5927d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/I18nProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function withI18n(
o?: object
): <P extends withI18nProps>(
Component: ComponentType<P>
) => React.ComponentType<P> {
) => React.ComponentType<Omit<P, 'i18n'>> {
return <P extends withI18nProps>(
WrappedComponent: ComponentType<P>
): ComponentType<P> => {
Expand Down

1 comment on commit 5927d42

@vercel
Copy link

@vercel vercel bot commented on 5927d42 Nov 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.