Closed typeofweb closed 5 years ago
This error was because you forgot name
option in the Extension
type. However, the Extension
itself should be adapted to typesafe-joi.
Fixed in 2.0.2.
Oh, my full code did have name
, I accidentally must've deleted it and pasted the wrong error 🤦♂ Sorry about that.
Thanks for the quick fix! 👍
Code to reproduce:
fails with the following error:
This is likely because
extends
is defined with the use ofJoiLib.Extension
which points to the original@types/hapi__joi
typings, andJoi.array
defined there is not compatible with the one fromtypesafe-joi
.