Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Accept object patterns for __type value #15

Open
cztamas opened this issue Jul 31, 2017 · 0 comments
Open

Accept object patterns for __type value #15

cztamas opened this issue Jul 31, 2017 · 0 comments

Comments

@cztamas
Copy link
Contributor

cztamas commented Jul 31, 2017

Would make easier to use a previously defined object patterns.
E.g.:
somePattern = { left: "object", right: "object },
pattern = { top: somePattern, bottom: { __required: false, type: somePattern } } - like usage
(Now it requires
pattern = { top: somePattern, bottom: {extend(true, {}, somePattern, { __required: false })} })

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

No branches or pull requests

1 participant