Skip to content

fix(d.ts)!: type details param of ValidationError constructor#2829

Merged
Marsup merged 2 commits intohapijs:masterfrom
hekystyle:strict-details-param-of-validation-error-constructor
Sep 17, 2022
Merged

fix(d.ts)!: type details param of ValidationError constructor#2829
Marsup merged 2 commits intohapijs:masterfrom
hekystyle:strict-details-param-of-validation-error-constructor

Conversation

@hekystyle
Copy link

Since details property of ValidationError interface is typed as ValidationErrorItem[] then I see no reason why details param of ValidationError constructor should be typed as any.

@hekystyle hekystyle changed the title fix(d.ts)!: strict details param of ValidationError constructor fix(d.ts)!: type details param of ValidationError constructor Sep 9, 2022
@Marsup
Copy link
Collaborator

Marsup commented Sep 17, 2022

I guess that's correct, just needs test fixing.

@Marsup Marsup self-requested a review September 17, 2022 19:04
@Marsup Marsup self-assigned this Sep 17, 2022
@Marsup Marsup added the types TypeScript type definitions label Sep 17, 2022
@hekystyle
Copy link
Author

@Marsup Test fixed.

@Marsup Marsup merged commit f11bfe1 into hapijs:master Sep 17, 2022
@Marsup
Copy link
Collaborator

Marsup commented Sep 17, 2022

Thanks a lot!

@Marsup Marsup added this to the 17.6.1 milestone Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

types TypeScript type definitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants