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

Small DX improvements for entityTransformation #7

Conversation

alexonaci
Copy link
Contributor

Hi @Charlesthebird , thank you for helping with entityTransformation, I tested the functionality and added here some very small suggestions/improvements. Please let me know what you think:)

  • export API and ApiVersion types to be reachable to client application when used in entityTransformation such that consumer applications wouldn' need to use any to deactivate type checking
  • update README and index.ts example with examples that has type checking and don't use any
  • update example to not use param reassigning - it might lead to unwanted side-effects inside the library due to reference change and is usually not a good practice (https://eslint.org/docs/latest/rules/no-param-reassign)

- export API and ApiVersion types to be reachable to client application when used in entityTransformation
- update README and index.ts example with examples that has type checking and don't use any
- update example to not use param reassigning - it might lead to unwanted side-effects inside the library due to reference change and is usually not a good practice (https://eslint.org/docs/latest/rules/no-param-reassign)
@solo-build-bot
Copy link

solo-build-bot bot commented Nov 5, 2024

Waiting for approval from someone in the solo-io org to start testing.

Copy link
Collaborator

@Charlesthebird Charlesthebird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexonaci Thank you for the type updates! Once these 2 changes are accepted I can approve and publish a new release.

packages/backend/src/index.ts Outdated Show resolved Hide resolved
plugins/platform-portal-backstage-plugin-backend/README.md Outdated Show resolved Hide resolved
alexonaci and others added 3 commits November 5, 2024 22:06
Co-authored-by: Nicholas Bucher <behappy54321@gmail.com>
Co-authored-by: Nicholas Bucher <behappy54321@gmail.com>
Co-authored-by: Nicholas Bucher <behappy54321@gmail.com>
@Charlesthebird Charlesthebird merged commit ccaa3a7 into solo-io:main Nov 5, 2024
@Charlesthebird
Copy link
Collaborator

Charlesthebird commented Nov 5, 2024

This is now in v0.0.35 🎉 !

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

Successfully merging this pull request may close these issues.

2 participants