Open MJLHThomassen-Sorama opened 3 years ago
I think the typing issue is fixed from the beginning in Aurelia v2. However, I am sure if we have the bandwidth to fix v1 issues :(
Would you like to provide a pull request for it @MJLHThomassen-Sorama ?
I'm submitting a bug report
Please tell us about your environment:
Operating System: Windows 10
Node Version: v14.15.5
NPM Version: 6.14.8
Browser: all
Language: TypeScript
Current behavior:
In the aurelia-validation.d.ts file currently there this bit of code:
The ensure() method returns a FluentRules<TObject, any>, wile i would expect it to return a FluentRules<TObject, TValue>. The FluentRules class is fully typed properly with the TValue parameter, but all instances of FluentRules specify "any" as the second type parameter which cancels all the nice typescript benefits of type checking on the value.
Expected/desired behavior: All methods that return a FluentRules have it properly typed, 'any' is not used.