Can't call validate because of its declaration in index.d.ts
Cl00e9ment opened this issue · comments
I tested this simple example present in the documentation:
import 'Skeletons' from skeletons;
new Skeletons(Number).validate(5);
Unfortunately, I got an error because validate
expects no argument. Indeed, in the index.d.ts
file, validate
is declared as follow:
validate ():any
Shouldn't be something like that instead?
validate(data: any, opt?: object): boolean
This module really meets my needs. I hope that this will be fixed soon.
Thank you.
Hi @Cl00e9ment ,
thanks for the issue, I've update the package to v0.1.1
if you have any fix you can also send Pr directly,
thx!
Thanks, it works.
I will probably send pull requests in the future to add some features.