mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 09:55:50 +08:00
Fixed attempt to have a non void return type. (#9460)
This commit is contained in:
committed by
Masahiro Wakame
parent
a272ceddfa
commit
60082ac52b
2
joi/joi.d.ts
vendored
2
joi/joi.d.ts
vendored
@@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user