kin icon indicating copy to clipboard operation
kin copied to clipboard

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

Open pacifiquem opened this issue 1 year ago • 1 comments

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 :+1:

pacifiquem avatar Mar 11 '24 18:03 pacifiquem

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 avatar Mar 11 '24 18:03 pacifiquem