Skip to content

Commit

Permalink
Merge pull request #2477 from mxstbr/patch-1
Browse files Browse the repository at this point in the history
Add RegExp to the supported types for Extension.type
  • Loading branch information
hueniverse authored Oct 24, 2020
2 parents 6df29d8 + 84d0bcb commit c1577b2
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 @@ -1882,7 +1882,7 @@ declare namespace Joi {
}

interface Extension {
type: string;
type: string | RegExp;
args?(...args: SchemaLike[]): Schema;
base?: Schema;
coerce?: CoerceFunction | CoerceObject;
Expand Down

0 comments on commit c1577b2

Please sign in to comment.