Skip to content

Commit

Permalink
fix joi/joi.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vvakame committed Oct 7, 2014
1 parent 41c11a0 commit 59072fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions joi/joi.d.ts
Expand Up @@ -459,10 +459,10 @@ declare module 'joi' {
/**
* Validates a value using the given schema and options.
*/
export function validate<T>(value: T, schema: Schema, options?: ValidationOptions, callback?: (err: ValidationError, value: T) => void): void;
export function validate<T>(value: T, schema: Object, options?: ValidationOptions, callback?: (err: ValidationError, value: T) => void): void;
export function validate<T>(value: T, schema: Schema, callback: (err: ValidationError, value: T) => void): void;
export function validate<T>(value: T, schema: Object, callback: (err: ValidationError, value: T) => void): void;
export function validate<T>(value: T, schema: Schema, options?: ValidationOptions, callback?: (err: ValidationError, value: T) => void): void;
export function validate<T>(value: T, schema: Object, options?: ValidationOptions, callback?: (err: ValidationError, value: T) => void): void;

/**
* Converts literal schema definition to joi schema object (or returns the same back if already a joi schema object).
Expand Down

0 comments on commit 59072fd

Please sign in to comment.