Fixed attempt to have a non void return type. (#9460)

This commit is contained in:
Chris Manning
2016-06-03 02:05:22 +12:00
committed by Masahiro Wakame
parent a272ceddfa
commit 60082ac52b

2
joi/joi.d.ts vendored
View File

@@ -844,7 +844,7 @@ declare module 'joi' {
* @param schema - the schema object.
* @param message - optional message string prefix added in front of the error message. may also be an Error object.
*/
export function attempt(value: any, schema: Schema, message?: string | Error): void;
export function attempt<T>(value: T, schema: Schema, message?: string | Error): T;
/**