mikeerickson / validatorjs

A data validation library in JavaScript for the browser and Node.js, inspired by Laravel's Validator.
https://www.npmjs.com/package/validatorjs
MIT License
1.77k stars 280 forks source link

Typescript Support #137

Closed jackvial closed 7 years ago

jackvial commented 7 years ago

Typescript support would be nice 😄

prawana-perera commented 7 years ago

Yes I agree 1+

iamdtang commented 7 years ago

Maybe in the future. I think I'd like to move to ES6 first. Once enough people are familiar with TS, then we can consider adding it to this library.

harrygr commented 7 years ago

It seems the typings are available as part of the DefinitelyTyped project so you should be able to install them with yarn add @types/validatorjs (although I have yet to try).

It would be nice to have some officially supported typings in the project though.