ansman / validate.js

A declarative validation library written javascript
https://validatejs.org
MIT License
2.63k stars 336 forks source link

typescript bindings broken for 'noImplicitAny' mode #168

Closed jefbarn closed 7 years ago

jefbarn commented 7 years ago

Error:(3, 9) TS7006: Parameter 'attributes' implicitly has an 'any' type. Error:(3, 21) TS7006: Parameter 'constraints' implicitly has an 'any' type.

should be

export declare interface ValidateJS {
  (attributes: any, constraints: any, options?: any): any;
  async(attributes: any, constraints: any, options?: any): Promise<any>;
  single(value: any, constraints: any, options?: any): any;
}
jefbarn commented 7 years ago

Pull request #169

ansman commented 7 years ago

Thanks, fixed in 0.11.1