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

typescript bindings broken for 'noImplicitAny' mode #168

Closed
jefbarn opened this issue Nov 6, 2016 · 2 comments
Closed

typescript bindings broken for 'noImplicitAny' mode #168

jefbarn opened this issue Nov 6, 2016 · 2 comments

Comments

@jefbarn
Copy link
Contributor

jefbarn commented Nov 6, 2016

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
Copy link
Contributor Author

jefbarn commented Nov 6, 2016

Pull request #169

@ansman
Copy link
Owner

ansman commented Nov 6, 2016

Thanks, fixed in 0.11.1

@ansman ansman closed this as completed Nov 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants