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

Comments

Projects
None yet
2 participants
@jefbarn
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

This comment has been minimized.

Show comment
Hide comment
@jefbarn

jefbarn Nov 6, 2016

Contributor

Pull request #169

Contributor

jefbarn commented Nov 6, 2016

Pull request #169

@ansman

This comment has been minimized.

Show comment
Hide comment
@ansman

ansman Nov 6, 2016

Owner

Thanks, fixed in 0.11.1

Owner

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