File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ yarn.lock
6
6
.vscode
7
7
.serverless /
8
8
dist /
9
+ .idea
Original file line number Diff line number Diff line change
1
+ import { Server } from "http" ;
2
+
1
3
declare namespace ServerlessHttp {
2
4
export interface FrameworkApplication {
3
5
callback : Function ;
@@ -11,10 +13,10 @@ declare namespace ServerlessHttp {
11
13
}
12
14
13
15
/**
14
- * Handler-compatible function or application .
16
+ * Handler-compatible function, application or plain http server .
15
17
*/
16
- export type Application = Function | Partial < FrameworkApplication > ;
17
- export type Result = Function | Partial < FrameworkApplication > ;
18
+ export type Application = Function | Partial < FrameworkApplication > | Server ;
19
+ export type Result = Function | Partial < FrameworkApplication > | Server ;
18
20
19
21
export type Options = {
20
22
provider ?: 'aws' | 'azure'
You can’t perform that action at this time.
0 commit comments