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

Probably wrong type definition mismatch #68

Open
kemenydani opened this issue Feb 14, 2022 · 0 comments
Open

Probably wrong type definition mismatch #68

kemenydani opened this issue Feb 14, 2022 · 0 comments

Comments

@kemenydani
Copy link

I try to set custom translations to the web component on typescript and it looks like the type definition of the translations property is not matching with the defaultTranslations in the translations service.

Type definition of web component:

"translations": { [key: string]: string };

[key: string]: string

Type definition of defaultTranslations:

export const defaultTranslations: { [key: string]: string|Array<string> } = {

[key: string]: string|Array<string>

Screenshot 2022-02-14 at 09 32 59

After using // @ts-ignore on that line it knows how to process the list of strings, so probably this is type definitions mismatch between the web component and translation service.

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

No branches or pull requests

1 participant