Skip to content
This repository was archived by the owner on Sep 29, 2020. It is now read-only.

Decorators for validations #141

Open
varunkumar opened this issue Oct 4, 2017 · 2 comments
Open

Decorators for validations #141

varunkumar opened this issue Oct 4, 2017 · 2 comments

Comments

@varunkumar
Copy link

varunkumar commented Oct 4, 2017

Is there any plan to add decorators for performing various validations - type checks, null checks, custom checks on properties? Does it make sense to have them as part of this collection?

I would be happy to contribute if this seems fit and has potential interests.

@jayphelps
Copy link
Owner

No plans, but we can definitely discuss them! I think let's start with describing some concrete examples (with pseudo code) then we can go from there to see if they'd be a good fit.

As a guiding principle: the overall goal of core-decorators right now is mostly to implement decorators for fundamental things. The sort of decorators you might expect to be available by default in JavaScript, but aren't. It's not a strict definition though, if a given decorator is provides enough convenience and utility to be included. 😄

@cosmocochrane1
Copy link

cosmocochrane1 commented Feb 15, 2018

@jayphelps I found a case where I wanted to validate the Type of an argument passed into a method. Would this be something you'd be into having a look at. I'd be stoked to try to contribute

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

3 participants