@@ -18,6 +18,7 @@ import type {
1818import { Ioc } from '@athenna/ioc'
1919import { Cron } from '#src/applications/Cron'
2020import { Http } from '#src/applications/Http'
21+ import type { ServerImpl } from '@athenna/http'
2122import { EnvHelper , Rc } from '@athenna/config'
2223import { isAbsolute , resolve } from 'node:path'
2324import type { ReplImpl } from '#src/repl/ReplImpl'
@@ -26,6 +27,7 @@ import { CommanderHandler } from '@athenna/artisan'
2627import { LoadHelper } from '#src/helpers/LoadHelper'
2728import { Log , LoggerProvider } from '@athenna/logger'
2829import { Repl as ReplApp } from '#src/applications/Repl'
30+ import type { Handler as AWSLambdaHandler } from 'aws-lambda'
2931import { parse as semverParse , satisfies as semverSatisfies } from 'semver'
3032import { Is , Path , File , Module , Options , Macroable } from '@athenna/common'
3133import { NotSatisfiedNodeVersion } from '#src/exceptions/NotSatisfiedNodeVersion'
@@ -134,10 +136,13 @@ export class Ignite extends Macroable {
134136 }
135137 }
136138
139+ public async httpServer ( options : HttpOptions & { isAWSLambda : true } ) : Promise < AWSLambdaHandler >
140+ public async httpServer ( options ?: HttpOptions ) : Promise < ServerImpl >
141+
137142 /**
138143 * Ignite the Http server application.
139144 */
140- public async httpServer ( options ?: HttpOptions ) {
145+ public async httpServer ( options ?: HttpOptions ) : Promise < ServerImpl | AWSLambdaHandler > {
141146 try {
142147 this . options . environments . push ( 'http' )
143148
0 commit comments