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
which support plan is this issue covered by? (e.g. Community, Core, Plus, or Enterprise): Community
is this issue currently blocking your project? (yes/no): no
is this issue affecting a production system? (yes/no): no
Context
node version: 10.15.3
module version with issue: 16.1.7
last module version without issue: 15.0.2
environment (e.g. node, browser, native): node
used with (e.g. hapi application, another framework, standalone, ...): standalone
any other relevant information: none
What are you trying to achieve or the steps to reproduce?
I use joi.types() to extract some types for schema creation.
const{func}=joi.types();
What was the result you got?
undefined
What result did you expect?
function type object
When renaming func to function you intended to keep func as an alias #2012.
At the moment joi.types() returns an object with only function prop in it. An alias here would also be helpful as now I have to do some acrobatics like this:
const{'function`: func} = joi.types();
The text was updated successfully, but these errors were encountered:
Support plan
Context
What are you trying to achieve or the steps to reproduce?
I use
joi.types()
to extract some types for schema creation.What was the result you got?
undefined
What result did you expect?
function
type objectWhen renaming
func
tofunction
you intended to keepfunc
as an alias #2012.At the moment
joi.types()
returns an object with onlyfunction
prop in it. An alias here would also be helpful as now I have to do some acrobatics like this:The text was updated successfully, but these errors were encountered: