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

validator #4

Open
peterbsmyth opened this issue Mar 9, 2020 · 0 comments
Open

validator #4

peterbsmyth opened this issue Mar 9, 2020 · 0 comments
Assignees

Comments

@peterbsmyth
Copy link
Contributor

the validator is for validating config:

const validator = (config) => {
     const errors = [];
   if (error) {
     return ['strings', 'stating', 'the', 'error' ]
  } else {
     // empty array
    return errors;
  }
}
  1. are the required parameters on it, if not, throw an error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants