Skip to content

Commit

Permalink
.conditional option array type
Browse files Browse the repository at this point in the history
  • Loading branch information
RyWilliams authored Mar 5, 2021
1 parent 24600f2 commit 9dbb27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,7 @@ declare namespace Joi {
/**
* Adds a conditional alternative schema type, either based on another key value, or a schema peeking into the current value.
*/
conditional(ref: string | Reference, options: WhenOptions): this;
conditional(ref: string | Reference, options: WhenOptions | WhenOptions[]): this;
conditional(ref: Schema, options: WhenSchemaOptions): this;

/**
Expand Down

0 comments on commit 9dbb27b

Please sign in to comment.