-
Notifications
You must be signed in to change notification settings - Fork 14
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
Implement Types for native #178
Conversation
I have emailed in the signed CLA. Because of issues with the I my intent here is not to be rude, and I apologize if I am coming off that way. This is a stressful time for my work where we are trying to launch translations for our language heavy Angular app and have run into race conditions and problems with translations in our app. |
Noticed at least two bugs I should fix:
|
Same issue for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rgant Hello, can you please give us some details of what you are trying to achieve when declaring some Native Angular SDK interfaces and properties in the JS Native base package?
Some interfaces (e.g. ITranslationServiceConfig
) have meaning only in the Angular SDK, and some properties as well (e.g. sanitize
).
Can you maybe give as some examples of your problem to better understand what is needed? Thanks!
The real problem is that the dual subscriptions in I rewrote those Components (Pipe, and Service) to use Angular best practices and that resolved the issues. However that results in numerous complaints from my code linting and build system because of the index.d.ts declaration file you have in I did make notes regarding the problems with the interfaces in this ticket last night. If you are willing to merge this pull request then I will update it to resolve those problems. If you are unwilling to merge this pull request and unwilling to remove the If you delete the |
|
@rgant Thank you for the feedback, I would like to see the changes you did in the Angular SDK package, for sure any improvement is more than welcome! As for the |
@rgant The plan is to move forward with this PR. Can you please rebase the branch and we will take a final review tomorrow, and we are good to go. |
Bad types like `any` are so much worse than no types at all. But at least this would be correct types (mostly). transifex#64
Remove `_inline` and `sanitize` properties. Add an index signature.
to ITranslationConfig
Is the new name better? |
The failures in the Angular tests are something I was half expecting. I can clean those up, but I will need time as I am currently working on different projects. |
Thanks @rgant, we need to fix these before we can merge. We will take a look to see if we can help as well. This is an important update and we really appreciate the effort you are putting into this 🙏 |
6beef2f
to
93ec30c
Compare
@rgant Hi, I made some fixes for the Angular SDK tests, now are passing :) cc @nbasili |
@rgant Released as |
Awesome thanks so much! |
Bad types like
any
are so much worse than no types at all. But at least this would be correct types (mostly). #64