You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs, the second optional argument options is the same as the options for joi.ref with an additional functions object. This isn't reflected in the .d.ts file here.
LanguageMessages is typed as type LanguageMessages = Record<string, string | Record<string, string>>; but the record value could also be a joi.expression(), correct?
I'm using Joi like this below and it seems to be happy, although the types aren't.
Module version
17.13.3
What documentation problem did you notice?
joi.expression type documentation
According to the docs, the second optional argument
options
is the same as the options forjoi.ref
with an additionalfunctions
object. This isn't reflected in the.d.ts
file here.I think it should be something like:
LanguageMessages type documentation
LanguageMessages is typed as
type LanguageMessages = Record<string, string | Record<string, string>>;
but the record value could also be ajoi.expression()
, correct?I'm using Joi like this below and it seems to be happy, although the types aren't.
Before I submit a PR, do you agree the types are incorrect?
The text was updated successfully, but these errors were encountered: