Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gatsby-theme-i18n Typescript on LocalizedLink. #123

Open
Skil3e opened this issue May 7, 2021 · 0 comments · May be fixed by #141
Open

gatsby-theme-i18n Typescript on LocalizedLink. #123

Skil3e opened this issue May 7, 2021 · 0 comments · May be fixed by #141

Comments

@Skil3e
Copy link

Skil3e commented May 7, 2021

When using LocalizedLink Typescript requires property 'language' witch sould be an optional propery based on your example.

issue is on index.d.ts

export function LocalizedLink({ to, language, ...props }: {
  [x: string]: any;
  to: any;
  language: any; /* this sould be optional "language?: any" */
}): JSX.Element;

TS2741: Property 'language' is missing in type '{ children: ReactNode; to: string; className: string; }' but required in type '{ [x: string]: any; to: any; language: any; }'.

@sweethuman sweethuman linked a pull request Aug 24, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant