Skip to content

Commit

Permalink
Merge pull request #2551 from alburkerk/master
Browse files Browse the repository at this point in the history
feat: Make Joi.Schema generic
  • Loading branch information
hueniverse committed Feb 7, 2021
2 parents 8dd2fd1 + f8c55c8 commit 29b1b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ declare namespace Joi {
[key in keyof TSchema]?: SchemaLike | SchemaLike[];
};

type Schema =
type Schema<P = any> =
| AnySchema
| ArraySchema
| AlternativesSchema
Expand All @@ -699,7 +699,7 @@ declare namespace Joi {
| DateSchema
| FunctionSchema
| NumberSchema
| ObjectSchema
| ObjectSchema<P>
| StringSchema
| LinkSchema
| SymbolSchema;
Expand Down

0 comments on commit 29b1b93

Please sign in to comment.