Skip to content

Commit

Permalink
fix(theme-i18n): localized link type prop mismatch
Browse files Browse the repository at this point in the history
In typescript the `language` prop is required but in the js implementation it is optional.
  • Loading branch information
sweethuman committed Aug 24, 2021
1 parent 692499e commit a79377f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-theme-i18n/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function MdxLink({ href, children, ...props }: {
export function LocalizedLink({ to, language, ...props }: {
[x: string]: any;
to: any;
language: any;
language?: any;
}): JSX.Element;
export function LocalizedRouter({ basePath, children, ...props }: {
[x: string]: any;
Expand Down

0 comments on commit a79377f

Please sign in to comment.