diff --git a/.gitignore b/.gitignore index 34710ef..3d5be48 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ yarn.lock .vscode .serverless/ dist/ +.idea diff --git a/serverless-http.d.ts b/serverless-http.d.ts index 974ba09..965f8ba 100644 --- a/serverless-http.d.ts +++ b/serverless-http.d.ts @@ -1,3 +1,5 @@ +import { Server } from "http"; + declare namespace ServerlessHttp { export interface FrameworkApplication { callback: Function; @@ -11,10 +13,10 @@ declare namespace ServerlessHttp { } /** - * Handler-compatible function or application. + * Handler-compatible function, application or plain http server. */ - export type Application = Function | Partial; - export type Result = Function | Partial; + export type Application = Function | Partial | Server; + export type Result = Function | Partial | Server; export type Options = { provider?: 'aws' | 'azure'