Closed rubiin closed 1 year ago
As all that matters is that there's a validate
function that gets passed to ConfigModule.forRoot()
that takes in a config record and passed back the validated config or throws an exception, you could use @decs/typeschema
directly and use whatever schema library you prefer
Been using @nest-lab/typeschema and it is super awesome as I could switch the underlying validator. I was wondering is there a way to make it work with nestjs/config as well.