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

fix mapper does not support nested mapped types #248

Closed
wants to merge 1 commit into from
Closed

fix mapper does not support nested mapped types #248

wants to merge 1 commit into from

Conversation

martaver
Copy link

Fixes typings and encoder functionality to support creating mapped types that include nested mapped types, as per #246

Copy link
Owner

@mmkal mmkal left a comment

Choose a reason for hiding this comment

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

This makes sense to me, I think. Couple of comments re naming in the tests.

n => n === 1
)

const Bool_Number_String = mapper(t.string, Bool_Number, JSON.parse, JSON.stringify)
Copy link
Owner

Choose a reason for hiding this comment

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

The naming here is confusing. For consistency this should be called String_Bool_Number

n => n === 1
)

const Bool_Number_String = mapper(t.string, Bool_Number, JSON.parse, JSON.stringify)
Copy link
Owner

Choose a reason for hiding this comment

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

Same as above.

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

Successfully merging this pull request may close these issues.

2 participants