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

Support type-checking of "etc" object values #8

Open
gwltrs opened this issue Jun 12, 2017 · 1 comment
Open

Support type-checking of "etc" object values #8

gwltrs opened this issue Jun 12, 2017 · 1 comment

Comments

@gwltrs
Copy link

gwltrs commented Jun 12, 2017

It would be very helpful to have the ability to type-check "etc" properties in an object. I was hoping to be able to do something like this
typeCheck({ name: String, ... : Number}, obj, opt);
or this
typeCheck({ ... : Number}, obj, opt);

@hdon
Copy link

hdon commented Aug 25, 2017

I second this. I had just this need and did a Google search, and that's how I found this module. Too bad I can't use it for my use case :(

@gkz gkz added the enhancement label Apr 3, 2020
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

3 participants