Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Probably wrong type definition mismatch #68

@kemenydani

Description

@kemenydani

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions