gcanti / tcomb-validation

Validation library based on type combinators
MIT License
400 stars 23 forks source link

TypeScript definitions #37

Open jcristovao opened 8 years ago

jcristovao commented 8 years ago

Hi,

So, following this, I guess the next logical step would be to provide typescript definitions for tcomb-validation. Would it be easier to implement?

gcanti commented 8 years ago

tcomb-validation exports just 3 APIs:

1

validate(value, type, [options]) -> ValidationResult

2

ValidationResult

3

ValidationError

besides re-exporting the whole tcomb so it should be doable.

My only doubt is how to re-export tcomb without duplicating the typings.