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

[Enhancement] : In-built function's validation utility #82

Open
pacifiquem opened this issue Mar 11, 2024 · 1 comment
Open

[Enhancement] : In-built function's validation utility #82

pacifiquem opened this issue Mar 11, 2024 · 1 comment
Labels
code quality enhancement New feature or request good first issue Good for newcomers Priority-1 Must be worked on ASAP ( As Soon As Possible )

Comments

@pacifiquem
Copy link
Member

We repeat our selves too much while we're verifying if the number of parameters and number of arguments for native functions are the same as expected. We need to built a simple validation utility to help us avoid that. it has to be scalable so that in case we need to add further verifications it can be done easily 👍

@pacifiquem pacifiquem added code quality enhancement New feature or request good first issue Good for newcomers labels Mar 11, 2024
@pacifiquem
Copy link
Member Author

That validation utility class will be in /src/lib/validator.ts

It'll have a method which is reponsible for checking if number of parameters a native function has is equal to the number of argumets it received, otherwise it'll throw an error.

@pacifiquem pacifiquem added the Priority-1 Must be worked on ASAP ( As Soon As Possible ) label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality enhancement New feature or request good first issue Good for newcomers Priority-1 Must be worked on ASAP ( As Soon As Possible )
Projects
None yet
Development

No branches or pull requests

1 participant