You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this causes me issues, since the type of Translation is any because any overrides everything.
So I tried this in my local repo ("typescript": "^5.4.5") and I get no such recursion message.
I can think of two possible causes (but there might be another reason):
When this code was written, that restriction was in place, but it was removed in a later Typescript version.
When this code was written, the restriction was detected, and circumvented by making TranslationObject an interface. However the | any was not removed by accident.
Can this | any be removed?
The text was updated successfully, but these errors were encountered:
When this code was written, the restriction was detected, and circumvented by making TranslationObject an interface.
The restriction can be circumvented by writing TranslationObject as an interface instead of a type assignment. However that requires // eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style to be set to allow an interface to be used where a type assignment would have been more concise.
According to the lines below, the
any
union is necessary.core/projects/ngx-translate/src/lib/translate.service.ts
Lines 19 to 26 in ee77f16
However, this causes me issues, since the type of
Translation
isany
becauseany
overrides everything.So I tried this in my local repo (
"typescript": "^5.4.5"
) and I get no such recursion message.I can think of two possible causes (but there might be another reason):
TranslationObject
an interface. However the| any
was not removed by accident.Can this
| any
be removed?The text was updated successfully, but these errors were encountered: