Skip to content

Argument parsing issue on different functions. #70

@ozziest

Description

@ozziest

Story

This issue is related with this PR: #67

The problem is, some rules functions expect parameters one by one, but others expect an array. For example;

// isBetween.ts
export default (value: any, min: any, max: any, extra?: IContext): boolean => {
// isIn.ts
export default (value: any, options: any[] | string): boolean => {

That doesn't make sense. Parsing parameters can't cover both scenarios.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv2The next major release ideas

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions