mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
types/hapi: ServerMethod doesn't have to return Promise
This commit is contained in:
@@ -6,7 +6,7 @@ const server = new Server({
|
||||
});
|
||||
server.start();
|
||||
|
||||
const add = (a: any, b: any) => {
|
||||
const add = (a: any, b: any): number => {
|
||||
return a + b;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user