mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
types/hapi: ServerMethod doesn't have to return Promise
This commit is contained in:
Vendored
+1
-1
@@ -2704,7 +2704,7 @@ export interface ServerInjectResponse extends Shot.ResponseObject {
|
||||
* * * ttl - 0 if result is valid but cannot be cached. Defaults to cache policy.
|
||||
* For reference [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-servermethodname-method-options)
|
||||
*/
|
||||
export type ServerMethod = (...args: any[]) => Promise<any>;
|
||||
export type ServerMethod = (...args: any[]) => any;
|
||||
|
||||
/**
|
||||
* The same cache configuration used in server.cache().
|
||||
|
||||
Reference in New Issue
Block a user