maghis/types-joi

How to use checkPreferences?

Khuzha opened this issue · 1 comments

Is there any way to specify checkPreferences? In real joi I can specify it as follows:

const someSchema = Joi.object().keys({
  ...
}).prefs({ convert: false });

But in types-joi it does not work

I saw this my old issue, and would share solution I found: just use .strict(true)