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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking if a value is a struct #50

Closed
amsul opened this issue Dec 10, 2017 · 2 comments
Closed

Checking if a value is a struct #50

amsul opened this issue Dec 10, 2017 · 2 comments
Labels

Comments

@amsul
Copy link

amsul commented Dec 10, 2017

First off, props for the awesome library! Loving it so far 馃挏

Only hiccup I've had is there doesn't seem to be a way to tell if a value is a struct or not. There is the one method - but it's private: https://github.com/ianstormtaylor/superstruct/blob/eca567de5ac47debe0a9229d0f75c60afea3c8a4/src/is-struct.js

Is this something you'd be okay with exporting publicly?

@ianstormtaylor
Copy link
Owner

Hey @amsul, yes I'm down to export that. I'd love a PR if you were willing to make one! Thanks.

@amsul
Copy link
Author

amsul commented Dec 10, 2017

I realized it's more appropriate for my use case to just create a type definition for a struct. So I don't actually need this anymore.

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

No branches or pull requests

2 participants