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

Simpler property mapping #3

Open
ohager opened this issue Sep 17, 2017 · 0 comments
Open

Simpler property mapping #3

ohager opened this issue Sep 17, 2017 · 0 comments

Comments

@ohager
Copy link
Owner

ohager commented Sep 17, 2017

It would be nice if properties could be mapped a bit more dev friendly.

For the current version (0.0.11) you need to define everything in propertyTransform, like

const mapper = new Mapper( {propertyTransform: p => p === 'foo' ? 'foozed' : p} )

As Devs are lazy, I should provide a neater way to do that. 🍨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant