AlexJPotter / fluentvalidation-ts

A TypeScript-first library for building strongly-typed validation rules
Apache License 2.0
87 stars 6 forks source link

Export ValueValidationResult #41

Closed jp-rl closed 8 months ago

jp-rl commented 1 year ago

Hi Alex,

First of all, thanks for your library and the work you have invested in it. I usually use Fluent Validation in .net so it was a great surprise to find your library and use it in typescript.

I need to import the ValueValidationResult type for certain cascading validations inside nested components.

Before (v2.3.0) you could import from node_modules/fluentvalidation-ts/dist, but now (v3.1.0) in dist there is only index.d.ts

Could you consider exporting Value ValidationResult in dist/index.d.ts in future versions?

export { AsyncValidator, ValidationErrors, SyncValidator as Validator, ValueValidationResult };

TIA! Regards

AlexJPotter commented 8 months ago

Hi @jp-rl - apologies for the delay on this. I've just released v.3.2.0 that includes the desired type export. Please let me know if you have any further issues 🙂