-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Prototypical Record Types? #141
Comments
I agree. The Sanctuary way seems to be to respect enumerable keys, regardless of where they're defined. Would you like to submit a pull request for this change, James? |
Yeah sure 😄 |
#164:
|
Currently
$.RecordType
checks a value viaObject.keys
.Object.keys
will not pick up prototypical properties and methods.I think it'd be pretty helpful to be able to define types that include prototypes.
E.g.
Maybe
$Promise
isn't the best example, we'd probably want to use a BinaryType in that case. But even internally we could use the above in the validator for a BinaryType version for brevity.The text was updated successfully, but these errors were encountered: