Closed rauschma closed 3 years ago
I think we need to do the same as https://github.com/sindresorhus/ow/commit/ec59a5c59664d253854ff06d66c8d66ec4336cef here too.
hi @rauschma, i couldn't generate the error, i have just tested it with:
const bug = input => {
ow(input, ow.object.valuesOfType(ow.any(ow.string, ow.boolean)));
};
bug({
a: true,
b: "test",
});
it doesn't give me any error. Am i missing something?
@ilkerceng Did you try the exact line I mentioned? I got a static error when I last used it.
That’s the only information I have, sorry!
@rauschma Yep. I have just tried it the line your mentioned with ow@0.17.0. And it doesn't give any error.
OK, then I must have done something wrong. Thanks for checking, sorry for the noise!
Thanks.
hi @rauschma, i am really sorry, i have just came up with the same error now. it was my fault.
The following doesn’t seem to work for me: