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
[ ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[x] feature request
Current behavior
N/A
Expected/desired behavior
Declare (and export) a type for translation.
Instead of having Observable<any>, you can declare a type type Translation = { [key: string]: string | Translation }; and use Observable<Translation>
The type any is too vague and if I understand correctly the translation is an object where all properties are either a string or another type with string property or object (recursively).
The text was updated successfully, but these errors were encountered:
I'm submitting a ... (check one with "x")
Current behavior
N/A
Expected/desired behavior
Declare (and export) a type for translation.
Instead of having
Observable<any>
, you can declare a typetype Translation = { [key: string]: string | Translation };
and useObservable<Translation>
The type
any
is too vague and if I understand correctly the translation is an object where all properties are either a string or another type with string property or object (recursively).The text was updated successfully, but these errors were encountered: