types/hapi: ServerMethod doesn't have to return Promise

This commit is contained in:
David Johnson
2019-01-17 17:31:50 -07:00
parent d65998ff78
commit 3277aa827b
+1 -1
View File
@@ -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().