Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 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 jefbarn commented Nov 6, 2016

Pull request #169

@ansman
Copy link
Owner

@ansman ansman commented Nov 6, 2016

Thanks, fixed in 0.11.1

@ansman ansman closed this Nov 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.