Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

TypeScript definitions #37

Open
jcristovao opened this issue Jan 27, 2016 · 1 comment
Open

TypeScript definitions #37

jcristovao opened this issue Jan 27, 2016 · 1 comment

Comments

@jcristovao
Copy link

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
Copy link
Owner

gcanti commented Jan 27, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants