Skip to content

Commit b9770e3

Browse files
authored
minor correction for type comments (#3052)
'yes' and 'no' are no longer default conversions for boolean
1 parent 5685db7 commit b9770e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,12 +2118,12 @@ declare namespace Joi {
21182118
array<TSchema = any[]>(): ArraySchema<TSchema>;
21192119

21202120
/**
2121-
* Generates a schema object that matches a boolean data type (as well as the strings 'true', 'false', 'yes', and 'no'). Can also be called via boolean().
2121+
* Generates a schema object that matches a boolean data type (as well as the strings 'true' and 'false'). Can also be called via boolean().
21222122
*/
21232123
bool<TSchema = boolean>(): BooleanSchema<TSchema>;
21242124

21252125
/**
2126-
* Generates a schema object that matches a boolean data type (as well as the strings 'true', 'false', 'yes', and 'no'). Can also be called via bool().
2126+
* Generates a schema object that matches a boolean data type (as well as the strings 'true' and 'false'). Can also be called via bool().
21272127
*/
21282128
boolean<TSchema = boolean>(): BooleanSchema<TSchema>;
21292129

0 commit comments

Comments
 (0)